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
The first occurrence of the "?" character is in the table of language operators. As an operator, the "?" usage is defined as: set ? attribute Test whether attribute set contains an attribute
The second occurrence of "?" is used is for the example code: { name, age ? 42 }: "${name} is ${toString age} years old"
I found this confusing because this usage does not agree with the operator definition.
Since the "?" character can also be used to define default values in function parameter declarations, please add a comment, note, or definition of that usage.
The text was updated successfully, but these errors were encountered:
The first occurrence of the "?" character is in the table of language operators. As an operator, the "?" usage is defined as:
set ? attribute Test whether attribute set contains an attribute
The second occurrence of "?" is used is for the example code:
{ name, age ? 42 }: "${name} is ${toString age} years old"
I found this confusing because this usage does not agree with the operator definition.
Since the "?" character can also be used to define default values in function parameter declarations, please add a comment, note, or definition of that usage.
The text was updated successfully, but these errors were encountered: