Re:Rust for Embedded C Programmers
by steveklabnik on Sunday January 23, 2022 @02:06PM
(#30049274)
Rust's syntax for closures is extremely close to Ruby's; the only bad thing about it is that it's extremely close but not identical, hahah. (Only said half seriously. I think the syntax is fine, and possibly the best syntax possible, but understand others may not agree and that's fine.)
[ Parent
| on HN ]
Re:Rust for Embedded C Programmers
by ameliaquining on Sunday January 23, 2022 @08:31PM
(#30052608)
Okay, I suppose it has any defenders. I still don't like how || can be either logical-or or the parameters of a nullary closure, especially with move closures since "move" looks like an identifier. Personally, I would have gone with Java's or JavaScript's syntax.