I am never going to complain about Python again

Mark Lawrence breamoreboy at yahoo.co.uk
Thu Oct 10 01:39:16 EDT 2013


On 10/10/2013 05:36, Steven D'Aprano wrote:
> Just came across this little Javascript gem:
>
> ",,," == Array((null,'cool',false,NaN,4));
>
> => evaluates as true
>
> http://wtfjs.com/2011/02/11/all-your-commas-are-belong-to-Array
>
> I swear, I am never going to complain about Python again.
>

Isn't that what the CS gurus call a type safe array?  What's the 
problem, *I* don't see anything wrong with it :)

-- 
Roses are red,
Violets are blue,
Most poems rhyme,
But this one doesn't.

Mark Lawrence




More information about the Python-list mailing list