<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 23, 2015 at 4:27 PM, Tofu Ninja via Digitalmars-d <span dir="ltr"><<a href="mailto:digitalmars-d@puremagic.com" target="_blank">digitalmars-d@puremagic.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tuesday, 23 June 2015 at 23:17:54 UTC, Meta wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tuesday, 23 June 2015 at 22:58:32 UTC, Vladimir Panteleev wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Proposed new name: lowerCased / upperCased<br>
</blockquote>
<br>
I really hate this naming scheme for functions that take lazy parameters. I still don't see why we don't do the (IMO) simplest and most intuitive thing and name them lazyToLower / lazyToUpper (or toLowerLazy / toUpperLazy). ...<span style="color:rgb(34,34,34)"> </span></blockquote></div></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote>
<br></div></div>
Yes please! If I didn't know what they were replacing, I would have no idea what withExtension, lowerCased, or upperCased meant at all. They hardly seem better than what they are replacing. Just do setExtensionLazy / toLowerLazy / toUpperLazy. It is much simpler and clearer.<br>
</blockquote></div><br></div><div class="gmail_extra">Counter argument:</div><div class="gmail_extra"><br></div><div class="gmail_extra">If the lazy versions are expected to be preferred/used often, then using a 'Lazy' suffix for them is wordy and counterproductive.  You want the preferred method to be nicer than the alternative, which having extra 'Lazy' on the end isn't.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Lazy suffix smacks of lazy naming to me.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">Point the first: There should be a different convention for these different methods (believe there is no argument here).</div><div class="gmail_extra"><br></div><div class="gmail_extra">Point the second: This convention should apply throughout phobos, trying to choose on a method-by-method basis gives a crappy library.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Point the third: Pretty/intuitive range-centric names are good.  Names should reflect that this is a different approach, not just 'toFooRanged'.</div><div class="gmail_extra"><br></div><div class="gmail_extra">TL;DR I like Vladimir's names, don't like toLowerLazy.</div></div>