Re:JavaScript: The Curious Case of null >= 0
by laichzeit0 on Saturday September 09, 2017 @01:04PM
(#15207927)
Lack of formal training in Computer Science. Most programmers are self-taught and know nothing about the history of the field or prior work.
Notice -- free format dynamic typing, and, it gets it "right". This language/run-time was originally from the late '60s, last official update in 1975 (with some updates in the intervening decades).
Yes, according to the Javascript spec, the JS behaviour is correct. However, something as old as SNOBOL4 should have taught us that keeping type converting numerical operators dis-similar from object comparision would be good: "==" and "===" vs ident() and eq() and then relating ge() le() etc to the numeric class of operations consistently.
and, keeping in the spirit: Allow the explicit capture of "type" errors. We knew this in 1975. Why was this forgotten?