On Tuesday, 11 December 2018 at 20:44:28 UTC, Dukc wrote:
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).
I vaguely remember a very ancient version of D that had
<expression>.typeof instead of typeof(<expression>). This
might've been D1... the details are fuzzy.