News for hackers. Stuff that matters.
Re:Reducing Memory Usage in Ruby by sam0x17 on Tuesday January 23, 2018 @10:36PM (#16220108)
Take a look at macros in crystal and I promise you 99% of the time you will be able to do what you did in Ruby. Practically everything people do that is "necessarily dynamic" could be done with macros at compile-time. You CAN do things like define the behavior for when a method name is unmatched on an Object or (at compile time) do some string processing and define a bunch of methods based on the results.

There are no comments on this comment yet.