Re: [ASOC] returning by reference and converting script objects to descriptors?
Re: [ASOC] returning by reference and converting script objects to descriptors?
- Subject: Re: [ASOC] returning by reference and converting script objects to descriptors?
- From: has <email@hidden>
- Date: Tue, 19 Jan 2016 01:49:09 +0000
Shane Stanley wrote:
On 19 Jan 2016, at 1:14 AM, has <email@hidden> wrote:
>
>> Curious statement - what's not to like about such objectives?
>
> They're fine, but I fear mission creep. Some of what you're proposing
seems to be the result of what you keep accusing others of: thinking
like a programmer instead of listening to users. For example, something
like a task lib sounds a fine third-party offering, but as part of a
StandardLib?
Ah, I get you now. Agreed, TaskLib is out. While NSTask offers some
significant benefits over `do shell script`, I don't think it's
sufficient to warrant its inclusion. Plus I can do without giving myself
the extra work.
> And are AS users going to change " n > m" to "someLib's check number
n is greater than m"?
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.
Anything else, please bash away. (e.g. The awkward FormatLib, and its
partial overlap of the 'convert text/date/number' handlers in DateLib
and MathLib are particularly bothering me right now, and I'm wondering
whether to get rid of FormatLib and merge its functionality into
TextLib, DateLib, and MathLib, or even entirely into TextLib.)
Ta,
has
_______________________________________________
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