3 ms·
I'd love for you to elaborate on (2). I don't think that's a criticism of Ruby I've heard before.
by pw 10y ago
I'd love for you to elaborate on (2). I don't think that's a criticism of Ruby I've heard before.
- catnaroek 10y ago(2) wasn't particularly aimed at Ruby, although some “creative” uses of metaprogramming can be very hard to debug. But languages designed for systems programming typically have features that, when used wrong, result in totally catastrophic modes of failure.
- yxhuvud 10y agoWell, you don't have runtime eval or send in Crystal, so some variants of metaprogramming can be ruled out. However, there are compile time versions of method_missing, delegates and instance_exec available (usually with slightly different naming due to not having the exact same semantics as the ruby counterparts), so it is still possible to do some magic.