On 5/25/2013 5:28 PM, Andrei Alexandrescu wrote:
My attitude on DDoc has evolved in threes:
3 minutes: "wtf is this crap"
3 hours: "this sucks"
3 days: "grumble I'll make do with this although it totally sucks"
3 months: "this is pretty darn good"
Thanks for the chuckle!
DDoc is simple for what it does, it has somehow hit a sweet spot.
It's not totally random. I've designed one macro language before (ABEL), and
have implemented 3 (ABEL, Make, and C preprocessor), so I knew what I wanted.
Ddoc is very similar to Make's macro system.
BTW, the C preprocessor takes the cake for being both horrendously complicated
(most implementations take about 10 years to get right) and woefully inadequate.