News for hackers. Stuff that matters.
Re:Comparing Parallel Rust and C++ by rat9988 on Thursday November 07, 2019 @12:15PM (#21475051)
def is way better than fn. you can read def at least.
Re:Comparing Parallel Rust and C++ by kbenson on Thursday November 07, 2019 @05:23PM (#21477953)
Read 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.
Re:Comparing Parallel Rust and C++ by lenkite on Friday November 08, 2019 @08:40AM (#21482035)
Previous 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