[Info-vax] DCL's flaws (both scripting and UI)

Simon Clubley clubley at remove_me.eisner.decus.org-Earth.UFP
Sat Jan 31 10:49:01 EST 2015


On 2015-01-30, Paul Sture <nospam at sture.ch> wrote:
> On 2015-01-30, Stephen Hoffman <seaohveh at hoffmanlabs.invalid> wrote:
>> On 2015-01-30 13:32:15 +0000, Simon Clubley said:
>>
>>> I also remember been surprised at one or two other things Javascript 
>>> did but I don't remember the details.
>>
>><https://www.destroyallsoftware.com/talks/wat>
>> Starts out with Ruby, but then heads deep into Javascript.
>
> Nice one, thanks.
>

I didn't know any of those, but with my new more detailed Javascript
knowledge I am now not surprised one little bit.

> "When You Can't Count On Your Numbers"
>
><http://yuiblog.com/blog/2009/03/10/when-you-cant-count-on-your-numbers/>
>
> Sorry I came up with the suggestion :-(
>

In fairness to Javascript, while it's a problem within Javascript, it's
not a Javascript specific problem.

If I had my way, all languages would either outright ban equality testing
of two floating point numbers or would require the programmer to state at
some point within the source code what the acceptable delta is between two
floating point numbers before they are no longer considered to be equal.

The compiler would then generate code which would check if the two
floating point numbers fell within this delta range instead of just
comparing two variables for equality.

Simon.

-- 
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Microsoft: Bringing you 1980s technology to a 21st century world



More information about the Info-vax mailing list