Web 2.0, Meet JavaScript 2.0 248
Jeremy Martin writes "Well I suppose it's an undeniable fact about us programmer-types — every now and then we just can't help but get excited about something really nerdy. For me right now, that is definitely JavaScript 2.0. I was just taking a look at the proposed specifications and I am really, truly excited about what we have coming."
Re:Sounds awesome, (Score:5, Informative)
Seamonkey even has a javascript debugger.
If your using IE, well then *snigger* your screwed.
Re:Ugh (Score:2, Informative)
User-defined overloading, obviously. And it's considered by some to be a bad idea. [elharo.com]
Don't forget about ECMAScript and Actionscript! (Score:2, Informative)
That being said, Flash Actionscript 3.0 (available now) includes many of the new features found in ES4 such as real classes. The next version of Actionscript will most likely be ES4-compliant.
Notable features in ES4 include:
- Classes and interfaces
- Generics
- Packages and namespaces
- Compile-time type checking
- Constants
- Operator overloading
- Record types (i.e., structs or light-weight classes)
- Typed arrays and hash maps
- Iterators
- Exceptions
More info: http://www.ecmascript.org/es4/spec/overview.pdf [ecmascript.org]
Re:As long as I got my Framework (Score:2, Informative)
you can track the status.
Use a perl (or some other language that handles everything manually*) script to receive the upload submission and write it to disk in a known location with a known name*. A second script can then compare the file size as it's uploading. Somewhat ugly
* PHP won't work since file uploading is handled behind the scenes.
** this may involve storing statistics in a database, manipulating session data, etc.
Re:Cross-Browser (Score:5, Informative)
Re:"Program Units" - potential for misuse (Score:4, Informative)
No, really, there's no new security problem here. Different hosts? How is that different to <script> elements pointing to different hosts today? Compromised hosts? What's different to today?
Browsers have been able to download code from disparate, potentially untrustworthy remote hosts since they first started executing JavaScript. You have not discovered a new problem.
Somebody already did, but you didn't like the answer.
Re:Bleah. Classes. (Score:3, Informative)
Gosling's argument against classes is that they encourage implementation inheritance, instead of interface inheritance.
Javascript lacks interface inheritance, and that's what makes it weak.
IMHO, inheriting the implementation from an object buys you nothing of value because well-structured code simply doesn't need it.
Re:Here's the link to the real info. (Score:4, Informative)
A parameterized type is a template for new types and is defined by adding type parameters to class, interface, type, and function definitions:
A parameterized type is instantiated by supplying concrete types for its parameters: The predefined types Map, Vector, IteratorType, and ControlInspector (among others) are parameterized.
The parameterized types in ES4 do not allow for type parameter constraints or variance annotations. However, nothing precludes the inclusion of these in a future edition of the language.
Re:Ugh (Score:1, Informative)