Return statement and whitespace

J

John G Harris

In comp.lang.javascript message <[email protected]
8924D9443D28E23ED5CD>, Sat, 8 Aug 2009 19:13:39, John G Harris


Finding out what happens on actual systems seems essential for
professional implementation.

One should use only that which *both* ought to work *and* actually does
work.

If something does not work in one of, say, IE & FF, then it's not
appropriate for Web use, even if one thinks the standard says that it
should work.

We're talking about different quadrants of the true/false
positive/negative diagram. I'm talking about code that appears to do
something but isn't described by any public standard. You're talking
about something that is described in a public standard but doesn't work
in some browsers. The second case is annoying, but at least it can be
proved by running a piece of code and noting what happens (or doesn't).

And I can test, say, for (J=1 ; J<9) J++ in the current browser
in less time than it takes to open the ECMA PDF, let alone find the
right part of it.

If it fails you know not to use it, though you don't know whether it was
supposed to work or not.

If it doesn't fail you have a problem working out what it's safe to
assume.

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,093
Messages
2,570,607
Members
47,226
Latest member
uatas12

Latest Threads

Top