Re:Rost – Rust Programming in German
by user_of_the_wek on Thursday March 27, 2025 @11:30AM
(#43494678)
I would assume that in rust, as in other languages, you can't use keywords as e.g. variable names because it would lead to mixups. So you can't translate programs back and forth without making sure you don't use keyword of _any_ possible language as variable names.
[ Parent
| on HN ]
Re:Rost – Rust Programming in German
by tialaramex on Thursday March 27, 2025 @01:35PM
(#43495897)
For keywords in particular you can write the identifier anyway, r#async is a perfectly reasonable (though ugly) way to use async as an identifier, despite the fact that async is a keyword in current Rust editions.
But the problem is that while we can mechanically perform the operation that doesn't have the effect claimed, it's as if people expected (and I know this does happen with idiots) that Chinese is just the same as English but with different symbols.