Re:Idioms for the D Programming Language
by einpoklum on Thursday February 11, 2021 @05:52PM
(#26108529)
So, you're saying: CTFEs, concepts and ranges done right. Hmm. Sounds good, actually...
[ Parent
| on HN ]
Re:Idioms for the D Programming Language
by mhh__ on Thursday February 11, 2021 @06:29PM
(#26108938)
https://run.dlang.io/is/dkFWTu
Sink your teeth into that. Code generation at compile time, functional programming etc.
The compiler can actually check that this is pure for you but in this case it isn't performed so it can read from stdin
Re:Idioms for the D Programming Language
by 1980phipsi on Thursday February 11, 2021 @08:07PM
(#26109706)
D doesn't have concepts. It just takes a different approach.