std.uni.toLowerCase / .toUpperCase
Vladimir Panteleev via Digitalmars-d
digitalmars-d at puremagic.com
Thu Jun 25 13:42:39 PDT 2015
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.
More information about the Digitalmars-d
mailing list