Y
Hacker News
new
|
ask
|
show
|
jobs
by
bemaniac
5173 days ago
I wasn't defining a function in that example, I was calling a function that contained a closure as an argument (in both JS and CS). This is perfectly valid JavaScript.
I've edited the post to be more clear on this.