News for hackers. Stuff that matters.
Re:TypeScript: a language for application-scale JavaScript d... by Xcelerate on Monday October 01, 2012 @05:37PM (#4599483)
I'm not sure function level scope over block level is a bad thing. It makes it more Lisp-y. And if you want block level scope, it's about as easy as (in CoffeeScript):

    do ->
        ... local variables right here ...
Re:TypeScript: a language for application-scale JavaScript d... by munificent on Monday October 01, 2012 @06:32PM (#4599695)
> I'm not sure function level scope over block level is a bad thing. It makes it more Lisp-y.

Lisp has block scope.

Re:TypeScript: a language for application-scale JavaScript d... by Xcelerate on Monday October 01, 2012 @08:11PM (#4600029)
Well, it can have both...
Re:TypeScript: a language for application-scale JavaScript d... by Evbn on Monday October 01, 2012 @08:43PM (#4600136)
Example?

Can you write Lisp like this?

Function for(){ f(x); var x = 2; }

Compiles and runs with f(undefined)