Perl loops should use break, not last
From: Jeremy Morton (ask_at_me.com)
Date: 01/29/05
- Next message: Matija Papec: "Re: Perl loops should use break, not last"
- Previous message: Atlantis: "Re: regular expression question"
- Next in thread: Matija Papec: "Re: Perl loops should use break, not last"
- Reply: Matija Papec: "Re: Perl loops should use break, not last"
- Reply: A. Sinan Unur: "Re: Perl loops should use break, not last"
- Reply: Anno Siegel: "Re: Perl loops should use break, not last"
- Maybe reply: gargoyle: "Re: Perl loops should use break, not last"
- Reply: Big and Blue: "Re: Perl loops should use break, not last"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 29 Jan 2005 15:42:53 -0000
Probably been mentioned before but I fail to see why Perl changed the
'break' keyword to 'last', in loops. Bear with me on this - it seems
semantically more accurate to say 'break' - you're immediately breaking out
of the loop. 'last' makes it sound like the current loop will be the last,
but not that the execution should be stopped immediately, whereas break
makes it sound like the latter.
Where can I propose that this be changed, or break aliased to last, for Perl
6?
-- Best regards, Jeremy Morton (Jez)
- Next message: Matija Papec: "Re: Perl loops should use break, not last"
- Previous message: Atlantis: "Re: regular expression question"
- Next in thread: Matija Papec: "Re: Perl loops should use break, not last"
- Reply: Matija Papec: "Re: Perl loops should use break, not last"
- Reply: A. Sinan Unur: "Re: Perl loops should use break, not last"
- Reply: Anno Siegel: "Re: Perl loops should use break, not last"
- Maybe reply: gargoyle: "Re: Perl loops should use break, not last"
- Reply: Big and Blue: "Re: Perl loops should use break, not last"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|