On Fri, Mar 9, 2012 at 4:24 PM, Jonathan M Davis <span dir="ltr"><<a href="mailto:jmdavisProg@gmx.com">jmdavisProg@gmx.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Friday, March 09, 2012 16:08:34 Brad Anderson wrote:<br>
> On Fri, Mar 9, 2012 at 3:56 PM, Jonathan M Davis <<a href="mailto:jmdavisProg@gmx.com">jmdavisProg@gmx.com</a>>wrote:<br>
> > On Friday, March 09, 2012 17:41:01 Steven Schveighoffer wrote:<br>
> > > I'll say I *don't* agree with the rejection of aliases on principle --<br>
> > > aliases can be extremely useful/helpful, and they cost literally nothing<br>
> > > (the "cognitive cost" on the docs is a BS argument IMO). I just don't<br>
> > > agree with consuming so many common symbols for the sake of sugar.<br>
> ><br>
> > aliases need to have a really good argument for existing. If UFCS is fully<br>
> > implemented, then I think that there is _some_ argument for having stuff<br>
> > like<br>
> > hours and minutes, because then you can do stuff like 5.seconds() (though<br>
> > honestly, I really don't like the idea). The alias enables different<br>
> > usages<br>
> > rather than simply being another name for the same thing.<br>
><br>
> What remains on UFCS? I've heard someone (Nick?) say he'd like it to match<br>
> static member functions too. I haven't tested but it seems like<br>
> 5.seconds() should work ever since Kenji's pull request was merged a couple<br>
> of days ago (thanks Kenji and Walter, I'm really looking forward to that<br>
> change).<br>
<br>
</div>I don't know what the current state of UFCS is. I know that Kenji has been<br>
working on it and that at least some portion of it has been checked in, but<br>
what exactly it enables at this point, I don't know.<br>
<span class="HOEnZb"><font color="#888888"><br>
- Jonathan M Davis<br>
</font></span></blockquote></div><br><div>Here are the unittests he added if you are curious about what currently works in dmd HEAD: <a href="https://github.com/D-Programming-Language/dmd/blob/master/test/runnable/ufcs.d">https://github.com/D-Programming-Language/dmd/blob/master/test/runnable/ufcs.d</a></div>
<div><br></div><div>The issue "[tdpl] Implement uniform function call syntax" <<a href="http://d.puremagic.com/issues/show_bug.cgi?id=3382">http://d.puremagic.com/issues/show_bug.cgi?id=3382</a>> is marked as RESOLVED FIXED so, as far as I know, UFCS is done (ignoring the inevitable bugs that will eventually be uncovered).</div>
<div><br></div><div>Regards,</div><div>Brad Anderson</div>