On Tuesday, 27 March 2018 at 21:49:16 UTC, Walter Bright wrote:
On 3/27/2018 5:11 AM, Guillaume Piolat wrote:
- ability to write file during CTFE is not necessarily
positive. THough I can't tell why from the top of my mind.
The act of compiling a buggy program not influence the global
state of the computer. It should not be necessary to vet code
downloaded from the internet before even compiling it to ensure
it doesn't mess up the system.
The moment there is make or other build tool this is all futile.
CTFE should run in a sandbox. It must be safe to compile code.
I agree but mostly on the grounds of purity and reproducibility.
It also enables caching and incremental builds.
Safety - not so much.