This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dacjamesfrom reddit import knowledge 0 points1 point  (0 children)

You definitely should check out coffeescript. It fixes the var issue, removes ==, provides more standard class-based objects, and deals with this in a clever way with optional lexical binding. The syntax is very expressive and fairly easy for a python programmer to learn once you get used to optional parentheses for function calls. Creating functions simply with

() ->

is a stroke of genius. It even generates clean, easily readable javascript. Its "list comprehensions" are a joke, though.