Puzzled by this behavior

deadalnix deadalnix at gmail.com
Thu Jun 2 15:57:36 UTC 2022


On Wednesday, 1 June 2022 at 14:08:24 UTC, Ola Fosheim Grøstad 
wrote:
> The most sensible is to let local functions be syntax sugar for 
> lambdas. Just make delegate variables assign-once and 
> initialize-before-use.
>

I thought so until I implemented them in SDC, and it actually 
cause many problems. It's not fresh in my mind, so I'm not sure I 
can make a good case for this at the moment, but there were 
definitively problems.

That being said, reducing the semantic discrepancy between the 
two would definitively be a plus.



More information about the Digitalmars-d mailing list