Miscellaneous

# Garrett (18 years ago)

I found this example:

www.mozilla.org/js/language/es4/rationale/miscellaneous.html#typed-arrays

================================================================ function chickenCount(myChickens:Array[Chicken]):Integer { if (notHatched(myChickens)) abort("Can’t count the chickens yet"); else return myChickens.length; }

Note that if the function abort had no explicit return type or any return type other than Never, then the compiler would likely issue a warning inside the function chickenCount because it contains a code path (the false case of its if) that appears to fall out of the function without returning a value, while chickenCount is declared to return an Integer. The Never return type on abort tells the compiler that there is no such code path inside chickenCount.

If I'm not mistaken, the description below can only make sense if the example has "return abort( ... )", not "abort( ... )".

# Jason Orendorff (18 years ago)

On 7/17/07, Garrett <dhtmlkitchen at gmail.com> wrote:

I found this example: www.mozilla.org/js/language/es4/rationale/miscellaneous.html#typed-arrays

Note the date on that document. It's from a much older ES4 proposal from Netscape. The feature in question is not in the new ES4 language.

# Brendan Eich (18 years ago)

On Jul 17, 2007, at 8:56 AM, Jason Orendorff wrote:

On 7/17/07, Garrett <dhtmlkitchen at gmail.com> wrote:

I found this example: www.mozilla.org/js/language/es4/rationale miscellaneous.html#typed-arrays

Garrett heard this, but just so the list knows: These old documents
are being moved to new names without redirects, to break links and
search engine page rank. They've misled too many people already.
Sorry this didn't happen years ago.

# Sjoerd Visscher (18 years ago)

What would also help is to add a header to the ECMAScript Edition 4 Wiki. Now none of the pages even mention the word ecmascript, so they are very hard to find.

Sjoerd

# zwetan (18 years ago)

also as a side note why not use the wiki from the ES4 Trac and have all in one place ?

pros: tickets/milestone/etc. can be linked to wiki pages cons: actual wiki pages need to be ported to Trac