Postfix type notation - readability and parsing?
Simen Kjærås
simen.kjaras at gmail.com
Wed Mar 6 08:09:48 UTC 2019
On Wednesday, 6 March 2019 at 07:53:42 UTC, Simen Kjærås wrote:
> alias port = Option!(immutable ushort, "p|port", "Sets the port
> used for serving.", "PORT", 8888);
Of course, one issue is the lack of __GENSYM__, meaning that this
will only declare one variable, with two aliases:
alias a = Option!(int, "", "", "", 0);
alias b = Option!(int, "", "", "", 0);
unittest {
assert(&a == &b);
}
--
Simen
More information about the Digitalmars-d
mailing list