News for hackers. Stuff that matters.
Re:Reducing Memory Usage in Ruby by yxhuvud on Wednesday January 24, 2018 @11:22AM (#16223896)
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.
Re:Reducing Memory Usage in Ruby by look_lookatme on Friday January 26, 2018 @03:57PM (#16242846)
For the sake of this example, consider [:thing, :other_thing] to be dynamically created at runtime.