The trailing closure is beautiful!
Adam D. Ruppe
destructionator at gmail.com
Tue Dec 8 13:25:38 UTC 2020
On Tuesday, 8 December 2020 at 11:14:19 UTC, Jacob Carlborg wrote:
> D does not support trailing closures. But I've talked about
> that several times in the past [1][2][3]. Even did a proof of
> concept implementation. I'm all in favor of adding trailing
> closures or trailing delegates to D.
ideally too it would be slightly magic and handle flow control
keywords too. so `return` returns from the whole function not
just the delegate. similar to D's existing opApply perhaps.
More information about the Digitalmars-d
mailing list