# Supporting Emoji in identifiers

**URL:** <https://internals.rust-lang.org/t/supporting-emoji-in-identifiers/16838>\
**Category:** language design\
**Created:** [June 17, 2022, 11:21pm UTC](https://internals.rust-lang.org/t/supporting-emoji-in-identifiers/16838 "2022-06-17T23:21:00Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![afetisov](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/afetisov/32/8508_2.png) [@afetisov](https://internals.rust-lang.org/u/afetisov)\
**Post date:** [June 18, 2022, 1:15am UTC](https://internals.rust-lang.org/t/supporting-emoji-in-identifiers/16838/5 "2022-06-18T01:15:51Z")

</div>

It is indeed most unfortunate that legacy standards such as `XID_Start` and `XID_Continue` unicode properties prevent the use of perfectly cromulent and inclusive symbols such as emojies. Fortunately, at least we can get a partial workaround using even more ancient text standards, e.g. egyptian hieroglyphs. This is valid Rust code:

```rust
    let 𓀀 = 1u32;
    let 𓆣 = 2u32;
    let 𓀬 = 3u32;
    let 𓆸 = vec![𓀀, 𓆣, 𓀬];
    let 𓀫 = 𓆸.into_boxed_slice();
    let 𓀭 = 𓀫.len();

```

You just need to disable pesky `uncommon_codepoints` lints.

If you think that all the good stuff was in the past and they just don't make languages like the old ones anymore (just look at chinese, gosh! that's what I call a bloated language!), you can use the simple and natural cuniform from a more civilized age:

```rust
let 𒆩 = 1u32;
let 𒆯 = 2u32;
let 𒀀 = 3u32;
let 𒅄 = vec![𒆩, 𒆯, 𒀀];
let 𒆳 = 𒅄.into_boxed_slice();
let 𒐫 = 𒆳.len();    

```

Even a child can write that one! And they said COBOL was archaic 𓃜 𓆦

The learned ones may prefer something more exquisite, with subtle artistic expression in the stroke of every symbol:

```rust
let ꦋ = 1u32;
let ꦯ෯ = 2u32;
let ꧮ = 3u32;
let ꩶ = vec![ꦋ, ꦯ෯, ꧮ];
let ꬤ = ꩶ.into_boxed_slice();
let ꘚ = ꬤ.len();

```

Ah, Unicode! You're a real treasure trꙮve of beautiful artisanal code!

---

_[View the full topic](https://internals.rust-lang.org/t/supporting-emoji-in-identifiers/16838)._
