Perl is worse!

Steve Lamb grey at despair.rpglink.com
Fri Jul 28 13:09:41 EDT 2000


On 28 Jul 2000 16:49:31 GMT, gbreed at cix.compulink.co.uk
<gbreed at cix.compulink.co.uk> wrote:
>?  You said it was only declared to "get the name space in there".

    Yup.  "I'm going to use a, for what I know not.  Could be string, could be
integer, could be whatever I want."  The point was defining the name and
assiciate it with nothing.  But since the type is inferred on first use might
as well have the C declarations.


>> for x in range(10):
>>   if a:
>>     a.append(x)
>>   else
>>     a = [x]
>> 
>>    All that because of type checking?  Jumping through 3 hoops just to 
>> get done what should be a trivial matter.

>No, it's trivial:

    *sigh*  Examples!  These are examples.  Fine, for x in
('some','damned','list','of','stuff'):
  if damned:
    pass
  else:
    etc...

-- 
         Steve C. Lamb         | I'm your priest, I'm your shrink, I'm your
         ICQ: 5107343          | main connection to the switchboard of souls.
-------------------------------+---------------------------------------------



More information about the Python-list mailing list