If you could make any changes to D, what would they look like?

max haughton maxhaton at gmail.com
Thu Oct 28 21:48:09 UTC 2021

On Thursday, 28 October 2021 at 16:36:30 UTC, Dukc wrote:
> On Thursday, 28 October 2021 at 15:40:21 UTC, Dennis wrote:
>> On Thursday, 28 October 2021 at 15:18:54 UTC, Dukc wrote:
>>> I think that, in addition to bugs, there is one hurdle in 
>>> letting the compiler to fully optimise based on `pure`: how 
>>> do we implement a function that manually frees an array?
>> That's exactly what the linked issue 
>> ([22277](https://issues.dlang.org/show_bug.cgi?id=22277)) is 
>> about, so if you have any more insights on that, please post 
>> them there.
> No that's slightly different. The linked issue deals with 
> strongly `pure` functions. I'm dreaming about letting the 
> compiler to optimise based on weak `pure` too - not currently 
> allowed if I read the spec right, but could be without this 
> issue (I think?).

Is this worth caring about? Do the backend a that actually matter 
not already perform this analysis as part of their IPA?

More information about the Digitalmars-d mailing list