3 ms·
No method_missing please. The lack of it is one of the things I appreciate about JavaScript in contrast to Ruby. It's used similar to macros, but it tends to be
by rads 13y ago
No method_missing please. The lack of it is one of the things I appreciate about JavaScript in contrast to Ruby. It's used similar to macros, but it tends to be used by those who forget that the first rule of macros is Don't Write Macros.
- coldtea 13y agoBut the second rule of macros is "they are very powerful", DO write them for the cases that need it. Anyway, method_missing is not at all the same as macros. At least in Objective C that I know it's equivalent, it's very useful.