Replies: 2 comments
-
|
We should still be able to iterate over these arrays by indexing via a variable. If this variable is defined as a We can write For this reason, I think |
Beta Was this translation helpful? Give feedback.
-
|
implemented |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
(initiated by Chqrlie's idea)
Allow enum type as array size definer, like:
u8[Kind] kinds;
Advantages: it's very clear that the array size is linked to the enum. No hassle with gaps/elemsof/enum_max/etc
Restrictions for discussion:
Beta Was this translation helpful? Give feedback.
All reactions