Earlier quoted context omitted.
> I'm wondering if we ought to start thinking about a C++2.0 where we can write the C++ that we've learned we want. Wasn't that the incentive behind the D language?
Well, since D is garbage collected, it really exists in a different world from C++, so I'd say that no, it is not qualified to be in the running for a C++ 2.0.
C++17 Standard Published
71–80 of 85 posts
Re: C++17 Standard Published
#72Earlier quoted context omitted.
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.
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 ma…
Re: C++17 Standard Published
#73Earlier quoted context omitted.
Well, since D is garbage collected, it really exists in a different world from C++, so I'd say that no, it is not qualified to be in the running for a C++ 2.0.
D's GC can be turned off
Re: C++17 Standard Published
#74Earlier quoted context omitted.
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.
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 ma…
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
#75Earlier quoted context omitted.
How so?
There aren't a lot of languages that combine functional programming/generics & OO together quite so extensively. There's a lot of power you can unlock there if you can just manage the cognitive load of the syntax.
I really like it.
Re: C++17 Standard Published
#76Earlier quoted context omitted.
There aren't a lot of languages that combine functional programming/generics & OO together quite so extensively. There's a lot of power you can unlock there if you can just manage the cognitive load of the syntax.
I really like how D combines these two. The functional programming tools are a lot easier to use than C++ and a lot more practical than Haskell or OCaml. I absolutely adore the idea of purity in D: no side effects. That's all it should be, really. What this means is that it allows you to write pure functions in dirty, imperative ways as long as all the mutation is confined to the function and doesn't leak out. I real…
Re: C++17 Standard Published
#77Earlier quoted context omitted.
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 ma…
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.
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
#78Re: C++17 Standard Published
#79Earlier quoted context omitted.
Oooph, I'm no expert but that is not "good" C++ style. Definitely prefer using the iterator methods.
If it effectively solves your particular problems in your specific situation, then it IS good style ;)
Just trying to help. This code is entirely implementation specific.
Re: C++17 Standard Published
#80Earlier quoted context omitted.
There aren't a lot of languages that combine functional programming/generics & OO together quite so extensively. There's a lot of power you can unlock there if you can just manage the cognitive load of the syntax.
I really like how D combines these two. The functional programming tools are a lot easier to use than C++ and a lot more practical than Haskell or OCaml. I absolutely adore the idea of purity in D: no side effects. That's all it should be, really. What this means is that it allows you to write pure functions in dirty, imperative ways as long as all the mutation is confined to the function and doesn't leak out. I real…