3 ms·
I once used m4 to generate my blog. Hated it. Escaping was a nightmare and I was always afraid I'd quote something wrong.
by smlavine 1y ago
I once used m4 to generate my blog. Hated it. Escaping was a nightmare and I was always afraid I'd quote something wrong.
- PhilipRoman 1y agoI 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.
- kragen 1y agoThose 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.
- aartaka 1y agoSame experience, that's why I've decided on something more down-to-the-earth and imperative.