Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Nice syntax – Popular languages' syntaxes compared.
Instead of:
const add = (a, b) => { return a + b; }
const add = (a, b) => a + b
const add = a => b => a + b
I felt it was worth mentioning, but I understand that the goal of the article was not to provide a in-depth comparison.
There are no comments on this comment yet.
Instead of:
It could be written as: Or functions can also easily be turned into curried functions by doing: Which can be really powerful when used properly.I felt it was worth mentioning, but I understand that the goal of the article was not to provide a in-depth comparison.