Discussion Thread: DIP 1033--Implicit Conversion of Expressions to Delegates--Final Review
Nick Treleaven
nick at geany.org
Mon Nov 23 09:00:16 UTC 2020
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).
More information about the Digitalmars-d
mailing list