2 ms·
So how do I take a shared reference to a variable named "raw"? Complicating the grammar for no good reason. This should have stayed a macro.
by pwdisswordfishq 3mo ago
So how do I take a shared reference to a variable named "raw"?
Complicating the grammar for no good reason. This should have stayed a macro.
- afdbcreid 3mo ago`raw` is a contextual keyword.
- ssokolow 3mo agohttps://play.rust-lang.org/?version=stable&mode=debug&edition=2024&gist=b9b022cd4ea5b625ed98488ac5d10e50 https://play.rust-lang.org/?version=stable&mode=debug&editio...
- smj-edison 3mo agoRust allows you to use a literal iirc like r#raw, which helps with migration. This isn't too different from Zig's @"var" for example, which I'm glad modern languages have an escape hatch for naming things that don't parse normally.