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
its not something that should never be used, but using a discrete enum almost always makes code more readable and produces better error messages. FieldEnum and DeclEnum from std.meta go a long way in this regard. tactful in-line parameter enums can also be useful (eg foo: enum { fast, slow })
this also goes hand-in-hand with the general advice of preferring enum arguments over booleans
The text was updated successfully, but these errors were encountered:
its not something that should never be used, but using a discrete enum almost always makes code more readable and produces better error messages.
FieldEnum
andDeclEnum
fromstd.meta
go a long way in this regard. tactful in-line parameter enums can also be useful (egfoo: enum { fast, slow }
)this also goes hand-in-hand with the general advice of preferring enum arguments over booleans
The text was updated successfully, but these errors were encountered: