3 ms·
First of all, are you aware of shorthand methods? Are you aware that you can have non-arrow functions without the "function" keyword :) ES6 has grown :) And th
by ratww 7y ago
First of all, are you aware of shorthand methods? Are you aware that you can have non-arrow functions without the "function" keyword :) ES6 has grown :)
And there was no goal intended with the grep. This is what you wrote:
> And I'd love to see the codebase of a JS app that completely bans the "function" keyword
I just grepped "function" to give you a personal anecdote of an app that doesn't need to use the "function" keyword much.
That was the first time I interacted with you, I was trying to be nice then, and you were completely hostile. Some of the replies were completely uncalled for.
---
EDIT: You just edited your message to add the part about shorthand methods. My point still stands. I never claimed to be only using arrow functions (in fact, you're the one who DID claim I was only using arrow functions!). I only claimed we rarely use the "function" keyword.
- orange8 7y agoI do that all the time. Just after typing, I notice some typos or something that could be worded better and I quickly go and fix it. I have never edited a comment after seeing a reply someone had made to it, and I don't even think HN let you do that. And its funny that you say you're trying to be nice while dropping comments like: > it seems that you have extremely limited knowledge > I'd suggest learning before you make such claims before you make a fool of yourself. I see you flagged my comment above, maybe you should flag yours too.