Hacker News new | ask | show | jobs
by kuschku 4101 days ago
I used to complain about JS a lot, and from an OO standpoint it is annoying, but after I started getting more into functional programming, I started to like JS more and more.

Although a shorter function syntax with default-return on everything would make it a lot nicer (and more similar to LISP).

2 comments

It sounds like you're describing ES6 arrow notation: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
You could always use transpile to js language like CoffeeScript or ClojureScript for a nicer syntax. Combines it with build system like Gulp or Grunt really makes the experiences pretty painless.