codebook icon indicating copy to clipboard operation
codebook copied to clipboard

Enum ordinals

Open Machine-Maker opened this issue 2 years ago • 0 comments

The integer returned by Enum#ordinal should not just use the i# format, but should be something associated with the type of the enum, like for Direction, it could be directionOrdinal.

All in the name of reducing the number of primitive local variables that have numbers after them.

Machine-Maker avatar Jul 27 '23 03:07 Machine-Maker