Re: Continued try blocks

From: Date: Mon, 29 Apr 2013 08:13:11 +0000
Subject: Re: Continued try blocks
References: 1 2 3 4 5 6  Groups: php.internals 
Request: Send a blank email to internals+get-67189@lists.php.net to get a copy of this message
2013/4/28 Julien Pauli <jpauli@php.net> > On Sat, Apr 27, 2013 at 3:56 PM, Amaury Bouchard <amaury@amaury.net> > wrote: > > > 2013/4/27 Ferenc Kovacs <tyra3l@gmail.com> > > > >> please don't reuse the continue keyword for it. > >> > >> There are a bunch of code out there where which uses exceptions in a > loop > >> context. > >> For example you have a retry counter decremented in a loop and you catch > >> the exceptions and retry until the retry limit is reached. > >> > > Fair enough. We can use "resume". > > > > "continue" is just a keyword (syntactic sugar) we sure can change, I like > "resume" yes :-) > > Julien.Pauli > Does this sound familiar to anyone? Sub Foo( Bar ) On Error GoTo ErrorHandler . . . Exit Sub ErrorHandler: . . . Resume Next End Sub :-) Lazare INEPOLOGLOU Ingénieur Logiciel

« previous php.internals (#67189) next »