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
@g-r-a-n-t What is your opinion here? I think we should go with House(size=500, price=300, vacant=true) and forbid the current syntax (House(500, 300, true))
What is wrong?
When #203 lands, we'll have basic support for structs.
The current syntax for initializing structs is the same as for all function invocations (e.g.
House(300, 500, true)
) in the example above.I believe for better clarity struct initialization should look like one of these:
A.
House(size=500, price=300, vacant=true)
or B.
House(size:500, price:300, vacant:true)
How can it be fixed
Settle on syntax
Make modifications to the parser
The text was updated successfully, but these errors were encountered: