3 ms·
It's funny that in C++ this is 'abuse of the compiler' and it is awkward, in lisp this is called 'writing lisp code'.
by ohyes 13y ago
It's funny that in C++ this is 'abuse of the compiler' and it is awkward, in lisp this is called 'writing lisp code'.
- AnimalMuppet 13y agoWell, if you wrote a Lisp macro that recursively called itself until the compiler crashed, you might call that 'abuse of the compiler', too...
- marcosdumay 13y agoThat's because it is awkward. One of the fundamental properties people expect from a step called "compilation" is that it finishes. Also templates notation wasn't designed for this kind of use, and does not scale well for complex programs. In Lisp code generation is done in Lisp, a notation that scales quite well, and there isn't a separarted step called "compilation". There is no general assumption that "execution" finishes.
- cbsmith 13y ago> That's because it is awkward. It's more than a bit awkward really. Still, the OP is right: it's funny.