The Case Against Autodecode

Marc Schütz via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 1 03:31:14 PDT 2016


On Wednesday, 1 June 2016 at 01:13:17 UTC, Steven Schveighoffer 
wrote:
> On 5/31/16 4:38 PM, Timon Gehr wrote:
>> What about e.g. joiner?
>
> Compiler error. Better than what it does now.

I believe everything that does only concatenation will work 
correctly. That's why joiner() is one of those algorithms that 
should accept strings directly without going through any decoding 
(but it may need to recode the joining element itself, of course).


More information about the Digitalmars-d mailing list