News for hackers. Stuff that matters.
Re:Everyone really likes D now, How come? by axaxs on Monday January 14, 2019 @01:44PM (#18905267)
This comment is funny to me as it shows how different programmers tastes are. Some would say that is the worst of both worlds.
Re:Everyone really likes D now, How come? by asow92 on Monday January 14, 2019 @02:08PM (#18905470)
At the end of the day these are all just tools and some work better than others depending on the job and the person wielding it.
Re:Everyone really likes D now, How come? by mhh__ on Monday January 14, 2019 @02:35PM (#18905716)
You can write pure functional code in D, if that floats your boat.
Re:Everyone really likes D now, How come? by liveoneggs on Monday January 14, 2019 @05:17PM (#18907061)
D grew pattern matching and guards? (multi-funcs/etc)
Re:Everyone really likes D now, How come? by mhh__ on Monday January 14, 2019 @06:15PM (#18907478)
If you so choose to D can have a relatively clean library implementation. The type inference isn't bidirectional (Or at least it pales in comparison to HM) so it wouldn't be as good as ML-like FP.

Pattern matching is a feature of pure functional code rather than a requirement (As useful as it is, every time I touch haskell for fun I always miss the mathematical approach to coding when I then write in C-land).

Enforced purity is a feature, however. That's what I was referring to. However, ..., there is no pure-IO so it would be like Haskell before Monadic IO was figured out (I assume).

Re:Everyone really likes D now, How come? by sametmax on Monday January 14, 2019 @05:39PM (#18907230)
What the difference between a guards and a plain if ? I never understood it.