Re: exit this repeat loop
Re: exit this repeat loop
- Subject: Re: exit this repeat loop
- From: "Mark J. Reed" <email@hidden>
- Date: Tue, 13 Sep 2005 15:40:01 -0400
It's the standard way of doing it in Ruby. Of course, Ruby
distinguishes between the "exceptions" that you use for this (via
throw/catch) and the "errors" that arise from actual problems (via
raise/rescue).
On 9/13/05, Christopher Nebel <email@hidden> wrote:
> On Sep 12, 2005, at 1:59 PM, Matt Neuburg wrote:
>
> > I am very fond of throwing (and handling) an error as a way of
> > jumping out
> > to any desired level. I regard this as elegant.
>
> That would depend on how much you subscribe to the notion of
> "exceptions are only for exceptional conditions". In languages with
> richer flow control, using exceptions this way is generally
> considered an abuse. AppleScript being what it is, I'd consider it
> at least not unreasonable.
>
>
> --Chris Nebel
> AppleScript and Automator Engineering
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden