3 ms·
I happen to agree. When I see 'fn' I "hear" function, when I see 'func' I hear "funk, but misspelled". Also, with four space indentation (or for Go, a four spa
by samatman 2y ago
I happen to agree. When I see 'fn' I "hear" function, when I see 'func' I hear "funk, but misspelled".
Also, with four space indentation (or for Go, a four space tabset), 'func' aligns right where the code begins, pushing the function name off one space to the right. For 'fn' the function name starts one space before the code, I find this more aesthetic. Then again, the standard tabset is eight spaces, so this matters less in Go.
It would be pretty silly to pick a language on the basis of that kind of superficial window dressing, of course. But I know which one I prefer.