Skip to content

Rust doesn't support x₁ and x₂ identifiers while C++ does. #3402

@VorfeedCanal

Description

@VorfeedCanal

Most C++ compilers supported x₁ and x₂ as valid identifiers since addition of Unicode support: https://godbolt.org/z/zhGzTKjeK

Clang dropped that support in version 14 but it was restored in version 16 when “Mathematical notation profile for default identiers” ( https://www.unicode.org/L2/L2022/22230-math-profile.pdf ) was adopted.

Would it make sense for Rust to adopt it, too?

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-langRelevant to the language team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions