Content pfp
Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions

Justin Hunter pfp
Justin Hunter
@polluterofminds
In JavaScript have arrow functions fallen out of favor? I noticed all AI chatbots return standard functions like: function myFunction() { // code } Instead of: const myFunction = () => { // code }
5 replies
2 recasts
8 reactions

Donald Trump pfp
Donald Trump
@foobarbaz
Also arrow functions are from like 2015, and emca standard is like 1997? Probably seen a lot less arrow functions in training.
1 reply
0 recast
2 reactions

Mo pfp
Mo
@meb
A bit more explictness never hurts The main times I've used arrow functions have been in callbacks
1 reply
0 recast
1 reaction

jtgi pfp
jtgi
@jtgi
I use function usually. I like hoisting, less typing, easier to scan.
1 reply
0 recast
1 reaction

alex pfp
alex
@alexgrover.eth
Probably because the “function” syntax is more common in other languages, if I had to guess
0 reply
0 recast
1 reaction

Peter Ogilvie pfp
Peter Ogilvie
@pogilvie
I find the function keyword syntax easier to read if I don’t need to worry about the binding of “this”
0 reply
0 recast
0 reaction