Breaking ";" rule with lambda functions
pascal111
judas.the.messiah.111 at gmail.com
Mon Aug 1 20:36:12 UTC 2022
On Monday, 1 August 2022 at 19:32:41 UTC, Paul Backus wrote:
> On Monday, 1 August 2022 at 14:52:03 UTC, pascal111 wrote:
>> [...]
>
> From [the relevant section of the language spec:][1]
>
>> [...]
>
> In other words, a function literal is an expression that
> evaluates to either a delegate or a function pointer.
>
I'm not sure I'm understanding this, but it seems ok;
> You are correct that, strictly speaking, it is wrong to say
> that a function literal "is" an anonymous function (rather than
> "refers to" or "points to" one). However, the distinction
> usually does not matter in practice, so most D programmers use
> the terms interchangeably.
>
> [1]: https://dlang.org/spec/expression.html#function_literals
My complaint is about that a function is not a same as an
expression that functions return values, but expressions being
evaluated to provide values.
More information about the Digitalmars-d-learn
mailing list