AdeptLanguage / Adept

The Adept Programming Language
GNU General Public License v3.0
123 stars 9 forks source link

Support Wide Characters #280

Open ghost opened 10 months ago

ghost commented 10 months ago

I mean wchar_t. Rust and modern C++ support even more types of strings.

IsaacShelton commented 9 months ago

I don't personally use wide characters and instead favor UTF-8, but feel free to make a PR.

ghost commented 9 months ago

I don't personally use wide characters and instead favor UTF-8, but feel free to make a PR.

Does Adept's operator overloading powerful enough to do something like this?

foo WString = L"Здравствуйте"

IsaacShelton commented 9 months ago

It isn't powerful enough to do that I don't think. The closest is using #embed to embed a raw file as a String.

Although it probably would be good to improve the lexer to have proper support for UTF-8 encoding and wide characters in the future.