Rust doesn't support x₁ and x₂ identifiers while C++ does.
Nobody has claimed this yet.
- Dominant language
- Markdown
- Stars
- 6.6k
- Forks
- 1.7k
- Avg merge
- 16h 14m
- Merged PRs (30d)
- 1
Description
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the linked Godbolt example and Unicode mathematical notation profile, then review the discussion in this RFC issue. Determine whether adopting the identifier profile warrants a Rust RFC; done would require a decided proposal with clear scope rather than an implementation patch.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100