Discussion Thread: DIP 1043--Shortened Method Syntax--Community Review Round 1
Adam D Ruppe
destructionator at gmail.com
Tue Feb 8 17:11:19 UTC 2022
On Tuesday, 8 February 2022 at 17:03:25 UTC, Doigt wrote:
> you'll see exactly that they also have a case for lambda
> expressions with no return values
Which example is that? Do they assign it to a value of a
different type?
> Also you never addressed the JS side of my argument.
D allows a no-return lambda, but it doesn't allow you to assign
it to a variable of a different type.
Javascript doesn't do static type checking at all, so obviously
it would be different.
More information about the Digitalmars-d
mailing list