Perl is worse! (was: Python is Wierd!)

Richard Jones Richard.Jones at fulcrum.com.au
Thu Jul 27 21:37:46 EDT 2000


[Anthony Baxter]
> 
> >>> Steve Lamb wrote
> >     Range returns an error because of a bad type being stuffed into it.  Pe
> rl
> > at least sees that it is a number and makes the conversion itself.  I had t
> o
> > get around it by changing the foo assignment line to:
> > foo = int(match.group(3))
> 
> Euw! No, the "oh, I know what you want that to be, I'll change it
> for you" is my #1 all-time perl hate. I want a 
> "use really_strict_and_leave_my_types_alone" option before I ever
> consider looking at perl for anything ever again. Particularly when
> combined with magic linenoise - use the wrong bit of linenoise, and
> suddenly your large complex datastructure is an int. Yaaay.

   Hey, don't worry about mis-using the linenoise - you just have to _look_ at 
the damn structure in Perl the wrong way and suddenly it's something else. 
Automagical conversion of data based on context and automagical creation of 
undef variables (yes, even when "use strict") are two of several reasons why 
you just don't use Perl for complex data applications.


       Richard






More information about the Python-list mailing list