• 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: iPhoto returns a real number as a photo id
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhoto returns a real number as a photo id


  • Subject: Re: iPhoto returns a real number as a photo id
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 15 Jun 2010 08:31:39 +1000
  • Thread-topic: iPhoto returns a real number as a photo id

On 15/6/10 5:25 AM, "Rob Lewis" <email@hidden> wrote:

>> Let me ask, what can't you do with them that you could if they were integers?
>>
> Well, let's see: apart from the fact that it's damn strange to use a real
> number as an id number (or is it just me? In a long career, I can't recall
> ever seeing another instance of this), integers are much easier to read IMO,
> and more convenient to place in sorted lists.
>
> "every photo whose id is 4.943105932E+9" is just frickin' bizarre.
>
None of which really answers my question: what can't you do with them that
you could if they were integers?

> And there's an "insecurity factor" because everyone knows that floating point
> numbers are very often not exact representations.
>
Given the range they seem to be using, that's no problem here.

> Be honest now: if you were designing this, would you choose real as the type
> for your id numbers?
>
I don't think it's ideal, but I suspect the scripting ids reflect some
internal ids. Less than ideal is a far from novel concept in scripting
implementations, sadly.

--
Shane Stanley <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:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: iPhoto returns a real number as a photo id
      • From: Doug McNutt <email@hidden>
References: 
 >Re: iPhoto returns a real number as a photo id (From: Rob Lewis <email@hidden>)

  • Prev by Date: Re: Can I map custom characters to normal uppercase equivalents?
  • Next by Date: Re: iPhoto returns a real number as a photo id
  • Previous by thread: Re: iPhoto returns a real number as a photo id
  • Next by thread: Re: iPhoto returns a real number as a photo id
  • Index(es):
    • Date
    • Thread