4 ms·
I personally much prefer the smaller "fn" to "function". I started learning programming with python's "def", so maybe it comes from that.
by leotaku 7y ago
I personally much prefer the smaller "fn" to "function". I started learning programming with python's "def", so maybe it comes from that.
- rat9988 7y agodef is way better than fn. you can read def at least.
- kbenson 7y agoRead def? What the point of that? You might say "def" when you see it, but you think of the concept of a function. You should be translating fn to "function" in your head or if you speak it out loud, the same way you say "plus" when you see +. How do you "read" + otherwise? It's the same for every mathematical symbol, since there is no actual way to read them, since they communicate a concept that you most likely translate into your own language in your head.
- lenkite 7y agoPrevious poster has a small point. Even I am guilty of saying 'f-n' when reading rust code alound. Kotlin is the best - all functions are fun