Splitter quiz / survey

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Mon Apr 27 06:39:18 PDT 2009


bearophile wrote:
> Andrei Alexandrescu:
>> Splitter does what Perl's 
>> split does: 2.
> 
> Perl has to die. This is Python:

This answer is wrong for a number of reasons. First comes the fallacy 
that if Perl "has to die", everything Perl did was wrong. Second comes 
the fallacy that if Python is overall better than Perl, everything it 
does is better than everything Perl does.

>>>> ",a,b,".split(",")
> ['', 'a', 'b', '']
> 
> My lazy xsplit too works like that. I strongly vote for (4).

Why? I'd be willing to change things no problem, but "perl must die, 
here's python" just doesn't seem to have much persuasive power.


Andrei



More information about the Digitalmars-d mailing list