News for hackers. Stuff that matters.
Re:Move semantics in Rust, C++, and Hylo by Gualdrapo on Thursday December 05, 2024 @04:38AM (#42326527)
Maybe it's just me, but am no fan of they using the keyword ´fun´ to define a function. Nor Rust's ´fn´.

Also is it a bit strange they wrote "rust" along all the article instead of "Rust"?

Re:Move semantics in Rust, C++, and Hylo by diggan on Thursday December 05, 2024 @08:07AM (#42327851)
Personally I prefer `defn` for defining functions. `fn` is just a function that hasn't been declared or defined, obviously.
Re:Move semantics in Rust, C++, and Hylo by einpoklum on Thursday December 05, 2024 @07:55AM (#42327762)
Well, you're no fun :-(

Anyway, that's pure bikeshedding. "function" is a full word in English, but almost 3x the length.

Re:Move semantics in Rust, C++, and Hylo by consp on Thursday December 05, 2024 @10:04AM (#42328890)
And thus 3x more readable than fn. And otherwise it's bkshd for a 150% reduction.
Re:Move semantics in Rust, C++, and Hylo by zozbot234 on Thursday December 05, 2024 @02:35PM (#42331773)
To be fair, "fun" is also a full word in English. Also, it's just plain fun.