Perl is worse!

Ben Wolfson rumjuggler at cryptarchy.org
Fri Jul 28 15:10:22 EDT 2000


On Fri, 28 Jul 2000 15:23:38 GMT, grey at despair.rpglink.com (Steve Lamb)
wrote:

>On Fri, 28 Jul 2000 14:27:58 GMT, Grant Edwards <ge at nowhere.none> wrote:
>>If I typed "1", that means I wanted a word, a printible string, and _not_ an
>>integer.  If I wanted an integer I would type 1 instead of "1".  If I want to
>>convert a string to an integer or an integer to a float or a float to a
>>string, then _I_ will do it. I do _not_ want the language to make WAGs about
>>what I meant when I typed something.
>
>@names = ("Bob","Bob","Bob","Robert Paulson");
>@occupation = ("Uncle","Uncle","Uncle","Mayhem");
>$index = 0;
>foreach $name (@names){
>  $done = 0;
>  $x = 0;
>  while (!$done){
>    if ($members{$name.$x}){
>      $x++
>      next;
>    }
>    else{
>      $members{$name.$x} = $occupation[$index];
>    }
>  }
>}
>
>    Your argument completely ignores cases like the above, doesn't it?  Where
>you want to have a counter incremented (math function) but need to use it in a
>string constantly.  Simplistic example, yes, but a valid one.  Why force the
>programmer to do constant switching to do such a simple thing?

Just out of curiousity, what does the above do?  I'm not seeing $members
and $name.$x.

-- 
Barnabas T. Rumjuggler

habitamus in tenebris et crescemus comburendo umbrarum.



More information about the Python-list mailing list