3 ms·
really? for a word you're going to write potentially hundreds of thousands of times you prefer to write out "function" because "fn" is not clear enough? Short
by leshow 6y ago
really? for a word you're going to write potentially hundreds of thousands of times you prefer to write out "function" because "fn" is not clear enough?
Short keywords improve readability in a big way, IMO. There's obviously a balance to strike but I think things like "impl" "const" or "mut" or "ref" are pretty obvious.
- jbluepolarbear 6y agoI do prefer function over fn. I use a modern predictive text completions IDE with fuzzy typing, I don’t care if the keyword has 20 characters. I much prefer explicit keywords for readability. I think the struct, trait, impl, and fn relationships and differences are not only weird and intimidating, the shortened names add to the large barrier for entry.
- leshow 6y agoOddly, I would argue that the shorter words are better also "for readability".