Y
Hacker News
new
|
ask
|
show
|
jobs
by
nicwilson
3279 days 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
2 comments
VHRanger
3279 days ago
I don't think it's any secret D does CTFE better than any other language.
link
nicwilson
3279 days ago
Yeah it never ceases to amaze me the lengths that C++ users goto to try to do things at compile time.
link
logicchains
3279 days ago
Better than Common Lisp?
link
zerr
3279 days ago
Does better AND doesn't require the language to be AST :)
link
junke
3279 days ago
The joke's on you, working with an AST is a treat :)
link
looki
3278 days ago
Thanks, strangely enough this comment made me read more about D and I'm genuinely excited about getting into this language now
link