On Fri, Mar 9, 2012 at 3:56 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 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>
</div>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 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 usages<br>
rather than simply being another name for the same thing.<br>
<br>
Now, in this particular case, it's that much worse for exactly the reason that<br>
you're against it: it uses common names for free functions. It's not as big a<br>
problem as it would be in C or C++, but it's still a problem. There's also<br>
some risk that it will break code.<br>
<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div><br></div><div>Oh, and I'd just like to add some of my experience to this. These names are used by Boost's datetime library and they've never been a problem for me and at work we make extensive use of Boost datetime. There is risk but I think in this specific case they are fairly small (especially in D, over C++). We switched to Boost datetime after we had hundreds of thousands of lines of code written using a different system and I didn't encounter any problems with the duration shortcut functions clashing.</div>
<div><br></div><div>Anyway, it sounds like Walter is probably opposed from what he was saying in the other thread so this conversation is probably moot.</div><div><br></div><div>Regards,</div><div>Brad Anderson </div><div>
<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
- Jonathan M Davis<br>
</font></span></blockquote></div><br>