A few questions

Andrei Alexandrescu SeeWebsiteForEmail at erdani.com
Mon Jun 29 16:56:37 UTC 2020


On 6/26/20 10:30 PM, Yatheendra wrote:
> On Thursday, 25 June 2020 at 15:52:01 UTC, aberba wrote:
>> And some like D2 but cleaned out.
> 
> +1
> 
> If there is consensus on, for example, auto-decode as default needing to 
> go, a branch could be blessed that does so and works out a way to stay 
> in sync with the mainline. Just promote that so that new projects pick 
> it up (existing ones would know to stick to mainline).
> 
> Anything on which there is consensus, do it without impacting existing 
> code investments.

I think the first order of business would be to have a nothrow core that 
defines correcntess of inputs as preconditions. The rest of the library 
can use it underneath. For example maxElement would have a precondition 
that the range is not empty etc.

That also means finding new ways for APIs. std.conv.to would need a 
lambda to call if conversion fails, thus pushing policy to the caller.


More information about the Digitalmars-d mailing list