Implement Named Constructor syntax #163
Labels
good first issue
An issue that doesn't require deep knowledge of the compiler to fix or implement
language feature
A feature proposal for something added to the core language (not the standard library)
Ante should be able to construct struct values while naming each field in any order. The syntax should be as follows:
If no indent is provided, fields can also be given on the same line, separated by commas:
Note that in this form, constructing tuple values will require parenthesis. Expressions can also be omitted if they are syntactically a variable with the same name as the field. That is, the following:
Is equivalent to
The text was updated successfully, but these errors were encountered: