June 28th, 2008

I’m giving this macros in Ruby thing some serious thought.. As it turns out, the def_macro gem isn’t really all that complete and was just an experiment. There’s a slightly better possibility that I might use Raganwald’s rewrite.. But not 100% sure on that either. I might even come up with some kind of interface so end users can rewrite things like PHP’s for loops on their own, but with a decent default config.. Common cases, such as for ($i=0;$i<6;$i++) { ... } could get recognized as just iteration.. Hmm.. but that could get a bit complicated.. Like I said, it requires some thought, but it’s definitely a piece of this puzzle.