An enumeration that uses a string value type must define a starting value which is not incremented. As defined before a custom sequential function would be expected:
// enum Count:string { Zero, One, Two }; // TypeError Zero is undefined
enum Count:string { Zero = `0`, One, Two }; // One and Two are also `0`.
bool, string, object, SIMD, rational, and complex would all follow these same rules.
An enumeration that uses a string value type must define a starting value which is not incremented. As defined before a custom sequential function would be expected:
bool, string, object, SIMD, rational, and complex would all follow these same rules.
Can symbol be used as an enum type?