• 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: [ASOC] returning by reference and converting script objects to descriptors?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ASOC] returning by reference and converting script objects to descriptors?


  • Subject: Re: [ASOC] returning by reference and converting script objects to descriptors?
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 19 Jan 2016 16:55:44 +1100

On 19 Jan 2016, at 12:49 PM, has <email@hidden> wrote:
>
> Doing floating point comparisons is a problem, period. 0.7*0.7=0.49 should return true as far as users are concerned, but it doesn't, because AS's comparison operators don't allow for the inherent imprecision of FP representation. Frankly I'd far rather the language dealt with this sort of thing itself so users never need to think about it, but it doesn't, so whatcha going to do? So, other than the embarrassing syntax, that one I'm not too bothered about. If nothing else it serves to make users aware that such an issue even exists.

But is a StandardLib the place to make the point? If you want a lib that people are going to use, I think you need to concentrate on what you think they *will* use, not what you think they should, and try to keep it compact enough that people don't just give up wading through comments. And I think that needs a touch of the Jobsian approach, throwing out (well, moving elsewhere) what doesn't answer a common problem. Education is mission creep too, in this instance.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
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: [ASOC] returning by reference and converting script objects to descriptors? (From: has <email@hidden>)

  • Prev by Date: Re: Handlers in a variable
  • Next by Date: Script not working in InDesign CC 2015
  • Previous by thread: Re: [ASOC] returning by reference and converting script objects to descriptors?
  • Next by thread: Arguments expected by .setProperty() method on JSA collections ?
  • Index(es):
    • Date
    • Thread