OpenBSD port of dmd?

Peter Alexander peter.alexander.au at gmail.com
Sun Mar 18 11:20:40 PDT 2012


On Saturday, 17 March 2012 at 00:16:39 UTC, Andrei Alexandrescu 
wrote:
> Not convinced. They call it specialization, and it's a powerful 
> concept. We use it in std.algorithm all over the place.

I think having good-enough defaults works well for std.algorithm, 
simply because requiring explicit versions of everything would be 
tedious and error-prone. For platform-dependent code, I think 
requiring explicit versions is less tedious due to the relative 
infrequency of having to add a new platform.

It's purely a matter magnitude. If std.algorithm only had to 
support say, five types, with a new type added maybe once a year, 
I think requiring explicit versions of every parameterized 
function would be a good idea, too. It forces you to think about 
things.


More information about the Digitalmars-d mailing list