3 ms·
I see this C++ coroutines thing as a desperate cry for real AST macros, but the godawful syntax of c++ just can't really make that work. And besides, people wou
by voldacar 5y ago
I see this C++ coroutines thing as a desperate cry for real AST macros, but the godawful syntax of c++ just can't really make that work. And besides, people would complain even more if everyone made their own version of coroutines.
Maybe it would be possible to make a s-expression language with sane syntax that transpiled to C++ code and let you do arbitrary compile-time AST macros. You wouldn't have to rely on Turing-complete template insanity or whatever half-baked feature the committee shat out last. In principle it wouldn't even be that difficult to make something like this, since it wouldn't have to be an actual lisp. Might be an interesting project