2 ms·
The example in question is perfectly possible to do in Crystal during compile-time, using macros. What isn't possible is to create a new class on the fly as a s
by yxhuvud 9y ago
The example in question is perfectly possible to do in Crystal during compile-time, using macros. What isn't possible is to create a new class on the fly as a sort of magic lookup table that magic methods is called upon. Good riddance, for that functionality.
- look_lookatme 9y agoFor the sake of this example, consider [:thing, :other_thing] to be dynamically created at runtime.