I dun a DIP, possibly the best DIP ever

Adam D. Ruppe destructionator at gmail.com
Fri Apr 24 21:29:51 UTC 2020


On Friday, 24 April 2020 at 12:55:15 UTC, Nick Treleaven wrote:
> This syntax is an unfortunate inconsistency with your proposal, 
> but how often is variadic UFCS used ATM?

It is fairly important for the string interpolation DIP that's 
pending. `i"foo".idup` would expand to a UFCS tuple call in my 
proposal.

I might be able to adapt without it anyway.... but I do think 
T.foo() going silently to <foo(T[0]), foo(T[1])> is not ideal.

I can live with the `T.foo()...` syntax though I'm not crazy 
about it either.

The idea is good though. And cutting out the library thing means 
it can be used in more contexts too (no more forcing CTFE due to 
passing them as compile-time params!)


More information about the Digitalmars-d mailing list