"using the result of a comma expression is not allowed"
Don Allen
donaldcallen at gmail.com
Sun Apr 21 20:20:53 UTC 2024
On Sunday, 21 April 2024 at 19:16:03 UTC, Don Allen wrote:
> Thank you both for your useful replies and I understand why D
> has parted company with C in this area.
>
> But I maintain that the documentation is in conflict with
> itself and should be fixed (11.1 could note that there are
> exceptions, such as comma expressions). And I think it's bad
> practice to support a hobbled version of a common construct in
> anticipation of a use of the same syntax that hasn't happened
> yet and has been in the pipeline for years.
>
> I am also not about to re-write my code using lambdas. It's
> hackish workaround for a defect in the language, in my opinion.
I should have noted that I am not talking about lambdas in
general -- just as a substitute in this instance for blocks
returning values. I have written a lot of Lisp and Scheme over
many years.
More information about the Digitalmars-d
mailing list