UTF-8 in identifiers? #6472
-
|
Hello, I discovered Carbon as a programming language today and read that non-ASCII characters are allowed in identifiers. This is very important to me because I often need to use special mathematical characters, which is pretty much the main reason for switching from C/C++ to Carbon (I currently use Rust a lot for this reason). I tried to run a Carbon script with non-ASCII identifiers on https://godbolt.org/, but without success (other programming languages work). So my question is, is this a bug on the part of https://godbolt.org/, or will Carbon itself support UTF-8 for identifiers, and if so, when? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
It's a missing feature of the Carbon compiler -- see here. I don't know when it will be added, but keep in mind we're at least a year away from having a 0.1 release for evaluation, much less having a release that's ready for routine use. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, I'm looking forward to the release. Good luck to you all! |
Beta Was this translation helpful? Give feedback.


It's a missing feature of the Carbon compiler -- see here. I don't know when it will be added, but keep in mind we're at least a year away from having a 0.1 release for evaluation, much less having a release that's ready for routine use.