@safe pure nothrow compiler inference

monarch_dodra via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 1 12:31:40 PDT 2014


On Wednesday, 1 October 2014 at 15:12:41 UTC, Kagamin wrote:
> On Monday, 29 September 2014 at 14:40:34 UTC, Daniel N wrote:
>> It can be done, Walter wanted to do it, but there was large 
>> resistance, mainly because library APIs would become unstable, 
>> possibly changing between every release.
>
> Huh? Templates are part of library API too, see std.algorithm. 
> So what's the difference if the API consists of templated or 
> non-templated functions? Why for one part of API it's ok to 
> change with every release and for the other not ok?

It's not that "it's OK for templates", it's that you *must* have 
inference.

This was not an argument against having inference for normal 
functions.


More information about the Digitalmars-d mailing list