• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: exit this repeat loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: exit this repeat loop (From: Matt Neuburg <email@hidden>)
 >Re: exit this repeat loop (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: "Numeric overflow"?
  • Next by Date: Setting the computer name
  • Previous by thread: Re: exit this repeat loop
  • Next by thread: Re: exit this repeat loop
  • Index(es):
    • Date
    • Thread