cysky·há 3 anos·discussYou can define string enum type with a macro.https://github.com/crystal-lang/crystal/issues/10281#issueco...
cysky·há 3 anos·discussInteresting, a lot of new languages are dynamic languages with types.You should try crystal lang if you love writing ruby code.crystal lang has both interpreter and compiler, so that you can debug with interpreter during development and run compiled binary in production.
cysky·há 4 anos·discussCrystal lang has both compiler and interpreter.https://github.com/crystal-lang/crystal
https://github.com/crystal-lang/crystal/issues/10281#issueco...