Re: Perl loops should use break, not last

From: gargoyle (gargoyle_at_no.spam)
Date: 01/31/05


Date: Sun, 30 Jan 2005 23:12:30 GMT

On 2005-01-30, A. Sinan Unur <1usa@llenroc.ude.invalid> wrote:
>> I think that's fairly logical,
>
> That is because you have grown used to it.

I grew used to it because the C book told me that's how it works. It's
true that's arbitrary, and they could have gone either way.

I think they chose the most convenient path though. Makes it easy to
write simple one-line statments and omit braces. Stuff like that comes
up all the time in my code, but in Perl I'm bound to the { and } keys.
Ouch, did you hear my pinky scream out in pain? It's in agony from all
those keypresses. ;-)

> But there is a language that depends on indentation to figure out what's
> going on. It is Python.

I do not wish to convert to a bondage/S&M language. ;-)
  
> But your coding preferences are not at issue here.

I know it's about language design and all that. So I'll not critisize
Larry's decision, whatever he goes with is probably for the best.



Relevant Pages

  • Re: OT: Keyboard joy
    ... the 2260 keyboard was better; ... Is the 3278 the one that actually had the APL symbols on the keys with, ... Sinan Unur ...
    (comp.lang.perl.misc)
  • Re: Having Trouble Accessing Hash with Two "keys"
    ... I cannot access a hash with two keys. ... > I Perl there are two ways to emmulate multi-keyed associative arrays. ... Sinan Unur ...
    (comp.lang.perl.misc)
  • Re: sort on third, then second field
    ... > ouch, what's wrong with: ... My code flowed directly from my stream of consciousness. ... Sinan Unur ...
    (comp.lang.perl.misc)
  • Re: Slow insertion to hashes?
    ... the keys you are using might be generating too many ... Oh, a conspiracy theory;-). ... Sinan Unur ...
    (comp.lang.perl.misc)