proposal: short => rewrite for function declarations
Adam D. Ruppe
destructionator at gmail.com
Fri Oct 9 18:49:04 UTC 2020
On Friday, 9 October 2020 at 18:09:38 UTC, James Blachly wrote:
> (a limited form of) This is widely used in ECMAscript and
> called "arrow function"
Yeah, D already has it very similarly to that too, you can use it
for function arguments and variables, just not in like class
definitions, so it was a small change to the compiler to add it
here.
More information about the Digitalmars-d
mailing list