Tuesday, November 15, 2005
I know, I know, C++ macros have got a bad rep, and we have all seen how the misguided use of macros can create all sorts of problems. However, when macros are not simply a language add-on, but they can be more deeply integrated, wonderful things can be done.
I am sure I am not the only one that has been feeling frustrated by the impossibility of molding his libraries into something that was smoothly integrating with the language. Blocks and continuations are a step forward. Have a look at Ruby, JRuby or Groovy, and also have a look at the Java Syntactic Extender, another project that tries to revamp the aging Java language.