5 ms·
It is dynamic, curly braced, garbage collected, coroutines. Some really squeaky clean C code too. One can immediately tell this is a great code base to read and
by le-mark 9y ago
It is dynamic, curly braced, garbage collected, coroutines. Some really squeaky clean C code too. One can immediately tell this is a great code base to read and learn from, at the very least.
- augustk 9y agoWhat's so squeaky clean about hiding a goto inside a macro?
- le-mark 9y agoI guess you're referring to this[1]. I'd actually call that usage svelte. The macro is undefined not far after it's use in the file, and makes the section it's in far more readable. [1] https://github.com/lemon-lang/lemon/blob/9a0b3dbc854532b31f731a15f57365972d0cac73/src/lemon.c#L257 https://github.com/lemon-lang/lemon/blob/9a0b3dbc854532b31f7...
- billytetrud 9y agoWhy does it have the do-while(0)?
- le-mark 9y agoIt's a safeguard because {} statement blocks are optional [1]. [1] https://stackoverflow.com/a/923833/2561675 https://stackoverflow.com/a/923833/2561675