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

Justin Hunter pfp
Justin Hunter
@polluterofminds
That's what I had assumed too.
1 reply
0 recast
2 reactions

Donald Trump pfp
Donald Trump
@foobarbaz
I also think another reason may be that; often when teaching in software, the most explicit form is generally used before any time of syntactic sugar. And when we talk to chatGPT or claude etc. It infers a similar educational context. Just a thought.
0 reply
0 recast
1 reaction