News for hackers. Stuff that matters.
Re:C++17 Standard Published by jordigh on Tuesday December 05, 2017 @09:34PM (#15858041)
D has had concepts for quite a while. They call them template constraints:

https://dlang.org/concepts.html

You should give D metaprogramming a try. It's a whole new world, a new fantastic point of view.

Re:C++17 Standard Published by systems on Wednesday December 06, 2017 @01:14AM (#15858960)
D is in a tough situation right now

I think its good all around and balanced languages, but, there is always a better language for any use case, where D is an alternative

Ocaml, if you want performance close to C/C++ plus and high level abstractions

Rust, if you want manual memory managment

C# and Java, if you want large ecosystems and advanced features

Also C++ is now moving and improving fast Even Ada is sort of making a come back

Re:C++17 Standard Published by planteen on Wednesday December 06, 2017 @08:33AM (#15860910)
I'm curious about the Ada comeback - do you have any examples? I know it is still used in space & defense, but I thought those were legacy code bases.
Re:C++17 Standard Published by systems on Wednesday December 06, 2017 @10:30AM (#15861778)
Well, I would recommend you search for Spark, and check the website of AdaCore

But, I would suggest that investing in Rust might be more valuable for one's career I am learning a bit of ADA, only for educational purposes and to scratch an itch, it is very different from anything I used, and I like that

Re:C++17 Standard Published by jordigh on Wednesday December 06, 2017 @10:07AM (#15861538)
I'd argue D is better than all of those in some ways.

D development is lively and active. I enjoy the language, and I plan to keep using it as long as I keep enjoying it.

Re:C++17 Standard Published by maxxxxx on Tuesday December 05, 2017 @09:56PM (#15858130)
That looks really interesting. Is this all done at compile time or runtime? After further reading the answer seems to be compile.
Re:C++17 Standard Published by ben-schaaf on Tuesday December 05, 2017 @10:23PM (#15858209)
Definitely compile time. D has a somewhat similar feature called contracts (https://dlang.org/spec/contracts.html) which happen at runtime, but don't influence function/template resolution.