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
On a high-scale level it feels like we're trying to make enums with fields into enums with parameters.
We use the parameter parenthesis (...) instead of field braces {...}, the @param tag instead of direct comment placement.
Should we just embrace this and rename our construct to "enum with parameters"?
In Rust there is truly no difference between fields, whether they're in a struct or in a variant (ie. enumerator),
which I find to be very nice and clean, compared to ours.
We should keep the name "enum with fields". They are fields. This is very similar to records in C#, where you can specify your properties with a primary constructor:
We should use @param to add doc-comments to the fields of an enumerator.
The text was updated successfully, but these errors were encountered: