perlmonger: (pete)
perlmonger ([personal profile] perlmonger) wrote2008-01-11 05:15 pm
Entry tags:

pass me another split, sergeant, this one's elfed

[Poll #1119627]

[ ETA that this is an abstract question, not an invitation for a language war, though go ahead and have one if you must ]

[identity profile] quercus.livejournal.com 2008-01-12 05:21 pm (UTC)(link)
Python is wonderfully elegant, which unfortunately is elegance in implementing the language, not using the bastard.

Strings return True if you test them with issequence() (i.e. "Is this some soprt of array I'm looking at). Yes, they are a sequence, in terms of "Do they support the iterator functions", but this also means it's hard to tell whether the parameter you've just been passed in single or multi-valued (Duck-typing Parseltongues do this sort of thing a lot). Did I receive one string or an array of many? Can't tell.