5 ms·
How so?
by VHRanger 9y ago
How so?
- cbsmith 9y agoThere 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.
- jordigh 9y agoI 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 really like it.
- pjmlp 9y agoD is a very nice language, just needs a better GC implementation and more community love.
- cbsmith 9y agoD is, in a lot of ways, C++ without the syntactical compatibility with C.
- jordigh 9y agoAbsolutely agreed. D is kind of the C++ I always wanted. It's familiar, I can see the C++ lineage, and it's so much nicer to write than C++. I'm currently having fun writing Advent of Code in D: http://inversethought.com/hg/aoc/file/tip/2017 http://inversethought.com/hg/aoc/file/tip/2017
- pjmlp 9y agoOn my case, C++ only gets used to do low level stuff as library to integrate into Java and .NET applications. So modules and concepts were nice to have, but C++17 is already a very good improvement to write such kind of libraries.