3 ms·
> How about a language that loses the ability to redefine structures and methods after a certain point? Sounds awesome! We could call the phases before that po
by zbentley 8y ago
> How about a language that loses the ability to redefine structures and methods after a certain point?
Sounds awesome! We could call the phases before that point "compile time" and "preprocessor time", and the phase after that point "run time".
/sarc
- yorwba 8y agoMost languages lack one of these phases. C/C++ and the C preprocessor are completely different languages, you can't execute C code during preprocessing. That's annoying and the reason for the introduction of constexpr in C++11. Other languages are too dynamic to be handled by a static compiler, but might benefit if you could transition to optimized machine code at runtime. Except for Lisp, I don't think there are many other languages where such a thing is possible.