News for hackers. Stuff that matters.
Re:Better C – A subset of D Programming Language by aldacron on Tuesday April 28, 2020 @11:00PM (#23014810)
D's classes and interfaces are much like Java's, so it's possible and easy to write functions that express return types like that. It's also quite restrictive for generic programming. D's metaprogramming features are much more powerful. That means a template can return different types that do not conform to a single, easily-expressed interface. The std.algorithm package is built on that concept.

There are no comments on this comment yet.