|
TypeScript is a superset of JavaScript and you write it like you write JavaScript which I like. Any existing JavaScript is already TypeScript. One argument has been made that TypeScript is for people who don't want to learn JavaScript. I don't buy that. As Ward Bell said in an email: TypeScript is not a crutch any more than JSLint is a crutch. It doesn’t hide JavaScript (as CoffeeScript tends to do). - Ward Bell. I think Ward says it well. Folks rail against static typing but they don't complain about JSLint. TypeScript offers optional type annotations - it's hardly a perversion of JavaScript. TypeScript has been out a day. It's way early to see if it has legs.
|
|
|
|
|
Saying the TypeScript is for people that don't want to learn Java is like saying we should still be programming with Basic.
|
|
|
|
|
Dunno about the rest of you, but my favorite fix for JavaScript is Javathcript[^]. Lisp in the browser is what every real geek dreams of:
<script type="text/lisp">
(let*
( (button (getElement "btn"))
(nameField (getElement "name"))
(clickHandler (lambda () (alert (concat "Hello " (get nameField "value"))))) )
(set button "onclick" (export clickHandler))
)
</script>
|
|
|
|