Hacker News new | past | comments | ask | show | jobs | submit login

Its not hard, but it is rather verbose :(




As @dugmartin mentioned, it's really quite nice if you are using coffeescript. It ends up resembling templating in a lisp, something akin to hiccup for example.

I imagine a similar effect can be had with ES6 destructuring assignment, just with more commas and mandatory array brackets.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: