News for hackers. Stuff that matters.
Re:My Vision of D’s Future by jordigh on Tuesday October 15, 2019 @12:46PM (#21260534)
Yes, there's an extra barrier with D because of type checking, but in exchange, you get compile-time checks. I actually kind of like those template errors because they tell you what kind of Python-like compile-time duck-typing D is trying to use!

Oh, and you can also use type deductions for function declarations! Just make it a template and let D figure out for you what type you want, or use typeof to record the type you want and use that typename in your function declaration.

Re:My Vision of D’s Future by axaxs on Tuesday October 15, 2019 @01:09PM (#21260891)
That second feature sounds really neat. I'd always wished Go had implemented something like this, even if just for numeric types.
Re:My Vision of D’s Future by cppforlife on Tuesday October 15, 2019 @05:10PM (#21263830)
just use a wrong type (bool lets say), and check out go compilation error. it will tell you what type it wants.