2 ms·
Zig goes a fair bit further than c++ afaik. The ideal would be to be able to call run-time functions indiscriminately at compile-time (e.g. fopen) instead of ha
by jcelerier 4y ago
Zig goes a fair bit further than c++ afaik. The ideal would be to be able to call run-time functions indiscriminately at compile-time (e.g. fopen) instead of having to build separate other tools that will generate source code...
- rurban 4y agoThough here be dragons: All side-effects evaluated at compile-time, are not run at compile-time! So fopen, print and all IO or OS functions should be avoided, or even warned. It might be useful in certain edge-cases, but in my 20 years of compile-time programming, it's almost ever a bug, not a feature.