3 ms·
"have you failed? No. You wanted to show us your favorite line of Ruby code, and you did." Actually, I wanted to discuss how Ruby's open classes promote langua
by raganwald 19y ago
"have you failed? No. You wanted to show us your favorite line of Ruby code, and you did."
Actually, I wanted to discuss how Ruby's open classes promote language innovation from the fringe, not to try to impress you with how clever that line of code is.
"The next time you show a feature of a langauge, maybe make it solve a problem, or create something real, rather than just showing how few characters it takes to do something banal."
And there you have why my article failed you: you think it is about how useful that line of code is, or how clever it is, or what problem it solves, when I think it is an example of how Ruby is different from centrally planned language.
Is it great code? Of course not. Symbol#to_proc may even be an evolutionary dead end, AFAICT it's just a way to make OO code pretend that it's functional code.
Your criticisms point out that I need to work harder on establishing and communicating my theses, thank you.