proposal: short => rewrite for function declarations
Steven Schveighoffer
schveiguy at gmail.com
Sun Oct 11 19:07:54 UTC 2020
On 10/11/20 2:59 PM, Timon Gehr wrote:
> alias x=(t){ return expr; }
> auto x(t){ return expr; }
>
> Not sure what you are trying to achieve by varying the syntax this way.
> `=>` or not `=>` has nothing to do with function literal semantics.
You're right, it's already confusing.
I guess we can add more confusion as long as it's added consistently.
-Steve
More information about the Digitalmars-d
mailing list