std.uni.toLowerCase / .toUpperCase

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Thu Jun 25 14:06:37 PDT 2015


On 06/25/2015 10:42 PM, Vladimir Panteleev wrote:
> On Thursday, 25 June 2015 at 20:41:13 UTC, Timon Gehr wrote:
>> On 06/25/2015 04:10 PM, Vladimir Panteleev wrote:
>>>
>>>
>>> And, IMHO, this:
>>>
>>> fileName.readText.lowerCased.detabbed.toFile(fileName.withExtension(".foo"))
>>>
>>>
>>>
>>> looks much better than this:
>>>
>>> fileName.readText.lowerCaser.detabber.toFile(fileName.extensionSetter(".foo"))
>>>
>>>
>>
>> Definitely. The existing functions should have been named 'joined' and
>> 'splitted'. :o)
>
> I actually hypothesize that "joiner"/"splitter" were chosen because
> "split" the verb's past tense is also "split", which was taken by the
> eager function.

It was intended as a joke, but apparently the word exists/existed 
https://en.wiktionary.org/wiki/splitted .


More information about the Digitalmars-d mailing list