3 ms·
That intent to be "backwards compatible with C" doesn't stretch so far as to say, provide any way to spell valid symbols from C. Imagine you have some C that h
by tialaramex 5y ago
That intent to be "backwards compatible with C" doesn't stretch so far as to say, provide any way to spell valid symbols from C.
Imagine you have some C that has (for whatever reason) named two important functions "class" and "fn" which are completely reasonable C symbol names. In C++ that word "class" is reserved, so you can't name symbols class, but, that is what the C symbol's name is so too bad? However in Rust, even though fn is a reserved word there's no problem referring to that symbol, you just have to spell it r#fn meaning "the symbol named fn" as distinct from the keyword fn.