3 ms·
method_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.
by Sean1708 9y ago
method_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 :))