delegates, lambdas and functions pitfall

dom via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Sep 5 09:02:24 PDT 2016


On Monday, 5 September 2016 at 12:30:37 UTC, Daniel Kozak wrote:
>
>
> Dne 5.9.2016 v 14:15 dom via Digitalmars-d-learn napsal(a):
>> ...
>> but what is the difference between a lambda (=>) and a 
>> functions/delegates?
>> i think this is a major pitfall for newcomers, and should be 
>> adressed somehow.
> Yes, RTFM :)

yes you are right, but laziness you know :D

those pages aren't especially beginner friendly x)
https://dlang.org/spec/expression.html#Lambda


More information about the Digitalmars-d-learn mailing list