Discussion Thread: DIP 1033--Implicit Conversion of Expressions to Delegates--Final Review

Timon Gehr timon.gehr at gmx.ch
Mon Nov 23 12:58:39 UTC 2020

On 23.11.20 10:00, Nick Treleaven wrote:
> On Monday, 23 November 2020 at 08:01:00 UTC, Manu wrote:
>> This is a restriction that can be trivially lifted in the future if the
>> pattern you describe is prolific and my suggestion is proven to be
>> cumbersome, but it's virtually impossible to add the restriction in the
>> future once the cat is already out of the bag.
>> I am _deeply_ concerned by a core  language syntax that may invisibly 
>> result
>> in random allocations at any function callsite.
> +1, absolutely. In a systems language the caller should always be aware 
> whether the function scope is heap-allocated or not. This is about 
> performance, predictability and easier code review. (It's not just for 
> those wishing to minimise use of the GC).

No, sorry, that's exactly just who it is for. The ability to write code 
at the appropriate level of abstraction for the given use case is a 
strength of D.

More information about the Digitalmars-d mailing list