3 ms·
Ah yes. Just like Ruby and meta-programming games with send, define_method, and method_missing.
by kayodelycaon 4y ago
Ah yes. Just like Ruby and meta-programming games with send, define_method, and method_missing.
- Waterluvian 4y agoThey call it “reflection” because the more you use it, the more you ought to stop and reflect on your choices. ;)
- matheusmoreira 4y agoYes. It's very easy to get addicted to that powerful Ruby stuff. Unlike C and Lisp though, there is no way to get a compiler to expand the macros and show you the resulting metaprogrammed source code. You can inspect the objects at runtime but it's cumbersome compared to reading source code. Sometimes repetition is good.