Why doen't Rust allow to use Special Signs like emoji as identifiers?


let 🥰 = 5_i32;
let 🍎 = 2_i32;
assert_eq!(🥰 + 🍎, 7);

Rust's unicode identifier support is based off of the Unicode standard for identifiers, which is roughly speaking "letters" (of any script).


This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.