Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I once used m4 to generate my blog. Hated it. Escaping was a nightmare and I was always afraid I'd quote something wrong.


I use m4 with -P option and m4_changequote({{,}})

Personally I find it quite reasonable for code that you don't plan on changing any time soon.


Those seem like they would make it bearable. Also GNU m4 has an extension to standard m4 which doesn't replace builtin macro names that take arguments if you omit the (). Without that, every unquoted occurrence of words like format, index, join, quote, builtin, define, copy, or capitalize silently vanishes. It's a nightmare. You can also avoid this problem with changeword or -P.


Same experience, that's why I've decided on something more down-to-the-earth and imperative.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: