4 ms·
As with most things in C++ that looks horribly convoluted for some very simple functionality. In D all we have to do is: * `if ( __ctfe) { ... }` for compile
by nicwilson 9y ago
As with most things in C++ that looks horribly convoluted for some very simple functionality.
In D all we have to do is:
* `if ( __ctfe) { ... }` for compile time
* `if (!__ctfe) { ... }` for runtime
- VHRanger 9y agoI don't think it's any secret D does CTFE better than any other language.
- logicchains 9y agoBetter than Common Lisp?
- nicwilson 9y agoYeah it never ceases to amaze me the lengths that C++ users goto to try to do things at compile time.
- looki 9y agoThanks, strangely enough this comment made me read more about D and I'm genuinely excited about getting into this language now