28 ms·
Sounds like enums with extra steps.
by vips7L 9mo ago
Sounds like enums with extra steps.
- epolanski 9mo agoEnums aren't type safe in typescript
- vips7L 9mo agoSounds like a major flaw.
- socalgal2 9mo agoit’s Enuma associated with data without having to repeat yourself If you have to define the Enums in one place and then repeat them all in another just to associate data with each one you’ve failed
- vips7L 9mo agoMaybe you can elaborate but enums in Java or Kotlin easily have data associated with them. enum class Color(val rgb: Int) { RED(0xFF0000), GREEN(0x00FF00), BLUE(0x0000FF) }