I agree with you on the fun part. I've been getting more into JavaScript recently and I can see the use of the full word (function) being better for beginners overall.
there's a readability factor that I feel is added when you use the whole function. Especially for compiled languages, the "less characters" argument has no weight at all.
I agree with you on the
fun
part. I've been getting more into JavaScript recently and I can see the use of the full word (function
) being better for beginners overall."fun is short for function"
"Oh ok"
Yeah, but I still haven't seen the first person who doesn't question what
fun
is the first time they see it.Sometimes being clear and short don't go hand to hand.
there's a readability factor that I feel is added when you use the whole
function
. Especially for compiled languages, the "less characters" argument has no weight at all.It’s actually a “fewer characters” argument.
Actually in javascript es6 you don't have to type any word to create a function just () => {} which is the best notation IMHO