• 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: (beep) as string
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (beep) as string


  • Subject: Re: (beep) as string
  • From: Walter Ian Kaye <email@hidden>
  • Date: Tue, 18 Nov 2003 18:31:16 -0800

At 03:53p -0800 11/18/2003, Christopher Nebel didst inscribe upon an electronic papyrus:

On Nov 18, 2003, at 1:08 PM, julifos wrote:

Such as the undocumented "semi-infinite", without a class? (at least, a
known class)

set x to {}
set x's end to x --> {{...}}

Recursive structures may be undocumented, but they're perfectly supported, at least for now. There's a bunch of code to deal with them, and I even added the "..." printing myself. However, no one has ever found a practical use for them that I'm aware of.

If the list were a snake, it'd be eating its own tail.
I dunno where that would finish, but it sure would be messy. LOL


At 04:57p -0800 11/18/2003, Christopher Nebel didst inscribe upon an electronic papyrus:

On Nov 18, 2003, at 3:46 PM, Walter Ian Kaye wrote:

At 12:56p -0800 11/18/2003, Christopher Nebel didst inscribe upon an electronic papyrus:

I happen to agree with the "buggy" behavior. I expect to change AppleScript at some point to be not so fussy about "undefined" values -- Perl works this way, and it seems to work well for them.

Well Perl lets you undefine a value. Would we get similar functionality then?
I mean, there's more to Perl's handling of "undefined" than unfussiness.

I'm not sure that I'd add the "undef" command; I was thinking more of their treatment of "undef" as a value and the way that uninitialized variables return undef. For example, this breaks in AppleScript, because x isn't defined yet:

set x to x + 1

However, the equivalent "$x = $x + 1" works in Perl and sets $x to 1, because $x is implicitly the value "undef", which coerces to zero.

Ah, so.

AppleScript sort of has this in the "missing value" value, but it's not the same thing as the internal "undefined" value (yes, there is one) and it's not very consistently handled.

What does "missing" mean in "missing value"? If you know what I mean?

Heck, I'd be happy if we could just recapitalize variables... :)

That's an entirely different matter. However, it's also on my list.

I see. Goodie goodie gumdrops (60s flashback!).


-boo
"URL wa nan desu ka?!" (some tv commercial)
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: (beep) as string (From: julifos <email@hidden>)
 >Re: (beep) as string (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Selection-Getting
  • Next by Date: Re: delete files in nested folders
  • Previous by thread: Re: (beep) as string
  • Next by thread: Re: (beep) as string
  • Index(es):
    • Date
    • Thread