Blog post: What D got wrong
Dukc
ajieskola at gmail.com
Tue Dec 11 20:44:28 UTC 2018
On Tuesday, 11 December 2018 at 15:34:28 UTC, Simen Kjærås wrote:
>
> I believe a reasonable case can be made for .! for UFCS - it's
> currently invalid syntax and will not compile, and ! is the
> symbol we already associate with template instantiation:
>
> alias memberFunctions = __traits(allMembers, T)
> .!staticMap!Member
> .!Filter!(isSomeFunction);
>
> --
> Simen
Perhaps. I also think that it might be good if types could be
results of compile-ime expressions, including ufcs expressions
(so that 42.typeof would become legal, meaning an int).
More information about the Digitalmars-d-announce
mailing list