Hacker News new | ask | show | jobs
by kayodelycaon 1275 days ago
Ah yes. Just like Ruby and meta-programming games with send, define_method, and method_missing.
2 comments

They call it “reflection” because the more you use it, the more you ought to stop and reflect on your choices. ;)
Yes. 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.