• 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: how?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how?


  • Subject: Re: how?
  • From: Adam Morris <email@hidden>
  • Date: Thu, 14 Jan 2010 01:34:18 -0500


In what way? “repeat … end” is guaranteed to execute at least once, and if you don’t intend it to execute more than once, it shouldn’t be a repeat loop.

Lots of repeat loops might only repeat once ... errors, calculations that render the lack or need ... my point is merely that a repeat with a fake check isn't misleading if it's clear.

-Adam

On Wed, Jan 13, 2010 at 10:08 PM, Chris Page <email@hidden> wrote:
On Jan 13, 2010, at 6:37 PM, Adam Morris wrote:

I find that code misleading because it implies that that test will actually be used to exit the loop, but it isn’t.

A "lonely" repeat statement collides with Applescript's only way to ensure the loop executes once.

In what way? “repeat … end” is guaranteed to execute at least once, and if you don’t intend it to execute more than once, it shouldn’t be a repeat loop.

-- 
Chris Page

 The other, other AppleScript Chris


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Re: how? (From: Adam Morris <email@hidden>)
 >Re: how? (From: Chris Page <email@hidden>)
 >Re: how? (From: Adam Morris <email@hidden>)
 >Re: how? (From: Chris Page <email@hidden>)

  • Prev by Date: Re: how?
  • Next by Date: Re: how?
  • Previous by thread: Re: how?
  • Next by thread: Re: how?
  • Index(es):
    • Date
    • Thread