3 ms·
Here's a piece I was proud of 20 years ago. Can you count all the ways it's a steaming pile? https://github.com/dlang/dmd/blob/master/src/dmd/root/outbuffer.d
by WalterBright 7y ago
Here's a piece I was proud of 20 years ago. Can you count all the ways it's a steaming pile?
https://github.com/dlang/dmd/blob/master/src/dmd/root/outbuffer.d https://github.com/dlang/dmd/blob/master/src/dmd/root/outbuf...
I've recently fixed a number of its problems, but it's got a ways to go. Am working on it this evening.
It needs to be better because earlier today I found a bug enabled by its poor design:
https://github.com/dlang/dmd/pull/10462 https://github.com/dlang/dmd/pull/10462