News for hackers. Stuff that matters.
Re:Better C – A subset of D Programming Language by arunc on Tuesday April 28, 2020 @07:55AM (#23006118)
Vim vs emacs, auto inference vs explicit, I don't think it will ever end. :)
Re:Better C – A subset of D Programming Language by takeda on Tuesday April 28, 2020 @02:59PM (#23010497)
I don't know D, but after reading more comments looks like auto is also compensating for poor type system. For example functions that accept arguments of many types apparently need to be declared that are returning auto.

At least that's what I understood.

Re:Better C – A subset of D Programming Language by jane_red on Tuesday April 28, 2020 @04:54PM (#23011853)
Scala has a strong type system and when working with it on a daily basis I was not programming, I was thinking about types and fighting with the compiler. And that is the language which has a pretty decent IDE plugin. When I moved to D, it felt like a breathe of fresh air to me. Therefore, the whole talk above about auto and types looks like subjective nitpicking.

In practice though, D codes fast and runs fast, as promised on the official site.

Re:Better C – A subset of D Programming Language by jbverschoor on Tuesday April 28, 2020 @09:25AM (#23006706)
Aren't there any type synthesizers which modify your code based on inferenced types?
Re:Better C – A subset of D Programming Language by thesuperbigfrog on Tuesday April 28, 2020 @01:22PM (#23009333)
Re:Better C – A subset of D Programming Language by jbverschoor on Tuesday April 28, 2020 @09:05PM (#23014117)
No. I mean altering code to strong typing using type inference. So that auto becomes int, or MyClass*.
Re:Better C – A subset of D Programming Language by lostmsu on Tuesday April 28, 2020 @12:41PM (#23008774)
It already ended. VSCode and auto inference.