You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A language needs only one conditional control flow construct.
Go currently has multiple conditional flows, if-else, switch-case, and (?) select-case. This can be potentially problematic for the argument against a ternary operator.
The text was updated successfully, but these errors were encountered:
The switch statement has the type-switching support which is not easily replicable by other means and the select has the whole blocking stuff, they both serve their purpose. Ternary, on the other hand, is literally the same thing as an if-else but with another syntax. That's the point the FAQ is trying to make.
Closing here, since I think the current wording is fine.
The point it's trying to make is valid. The mechanism in which it's making said point isn't. Stating it only needs one of something when it clearly has at least 3 invalidates the argument.
The FAQ currently states
Go currently has multiple conditional flows,
if-else
,switch-case
, and (?)select-case
. This can be potentially problematic for the argument against a ternary operator.The text was updated successfully, but these errors were encountered: