Hacker News new | ask | show | jobs
by irrational 2985 days ago
I would have preferred a word.

const my_arrow_function = arrow_function(){}

arrow_function my_arrow_function(){}

arrow_function(){}

1 comments

In older C#, that would be delegate:

    delegate(int x){ return 10; }
(But yeah, nowadays that would be:)

    (int x) => 10