writeln and write at CTFE

tsbockman thomas.bockman at gmail.com
Thu Jan 14 01:13:37 UTC 2021


On Wednesday, 13 January 2021 at 23:38:54 UTC, oddp wrote:
> Just two langs I use from time to time:
>
> 1) nim via forced ctfe; way faster than d by running through a 
> vm:
>
> const foo = fib(42)
> static:
>   echo "foobar"
>
> 2) crystal via macros:
>
> {{ puts "foobar" }}
>
> Another one would be zig via comptime, but never tried that.

Good to know... doesn't sound like it's some kind of standard 
"2021" feature, though. Those are all lesser-known languages 
(like D), not industry standard stuff like C++, Java, etc.


More information about the Digitalmars-d-learn mailing list