2006년 5월 17일 수요일

Javascript 2

Ajaxian에 올라온 'Javascript 2/ ECMAScript Edition 4'의 특징들입니다.
  • Fix problems in JS1 that bug people daily
  • A type system to enforce invariants
    • instead of writing/debugging lots of value-checking code
    • optional annotations, an extension to JS1
  • Programming in the large
    • Package system
    • Visibility qualifiers (namespaces, private internal public)
    • Optional static type checking
  • Support bootstrapping and metaprogramming
    • Self-host most of the standard objects
    • Self-host compiler front end and type checker
    • Reduce need for future ECMA Editions

이 외에도, primitive type인 int, double, deciml, Class, Type등의 type이 추가되고, 타입을 정의하는 type expression(var x:String; - ActionScript에서는 지원되었던..) Class, interface, 심지어 연산자 오버로딩까지 지원할 예정이라고 합니다.

본문에 링크되어 있는 Presentation 파일을 읽어보면 좋을 것 같네요.

출처:
  Brendan Eich: JavaScript 2 and the Future of the Web

댓글 없음:

댓글 쓰기