3 ms·
I'm curious as to what you think is "magical" in Ruby. If anything, I've found it to be reasonably un-magical as a language. Rails is certainly "magical", but t
by matthewmacleod 9y ago
I'm curious as to what you think is "magical" in Ruby. If anything, I've found it to be reasonably un-magical as a language. Rails is certainly "magical", but that's a different thing.
- Sean1708 9y agomethod_missing is a prime example. The case of a variable indicating scope and optional brackets are both less magical but still magical in their own right.
- matthewmacleod 9y agoBut `method_missing` isn't magical, is it? It's entirely logical, well specified, and obviously derived from its Smalltalk message-passing history. 'Missing' brackets are merely a syntactic choice, though I will grant you that variable case is quite weird (though in that sense, I suppose Go is magical too :))