A D vs. Rust example

Walter Bright newshound2 at digitalmars.com
Sat Oct 22 01:38:00 UTC 2022


On 10/21/2022 5:52 PM, Steven Schveighoffer wrote:
> Hm... closures in D typically mean an allocation. So maybe my terminology is 
> messed up.

The original closure implementation in D did not allocate, and simply errored if 
an allocation was necessary. Sometimes I wonder if it would have been better to 
not have generalized it.



More information about the Digitalmars-d mailing list