Hacker News new | past | comments | ask | show | jobs | submit login

Why do all these recent languages keep using shorthand keywords? Was there a meeting where all language creators decided full keywords aren’t cool? It just makes the code unreadable to me.



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.


I 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.


Oddly, I would argue that the shorter words are better also "for readability".




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: