None of the programming languages I've used in the last ten years, save perhaps brainfuck, used ASCII. It was all unicode, either through explicit configuration atop the source code file, or e.g. UTF-8 by default.
None of the programming languages I've used in the last ten years, save perhaps brainfuck, used ASCII. It was all unicode, either through explicit configuration atop the source code file, or e.g. UTF-8 by default.
Did you know in C++ you can have a variables named as emoji? It compiles with clang++ with -std=c++11 :)
APL is a famous non-ASCII based programming language using arrows and such, but very difficult to type on a modern computer of course. Other than esoteric languages, I don't know any modern programming languages using non-ASCII symbols in core keywords and operators.
https://github.com/tonsky/FiraCode
Depending on your (irrational) feelings about fonts and typography, this may either be the most amazing advance in coding readability you've ever encountered, or a mild improvement, or even annoying. But I love them!
A number of coding-oriented fonts support them now:
https://medium.com/larsenwork-andreas-larsen/ligatures-codin...
also, small grammar niggle: "it's" should only be used where it can be replaced with "it is" and still make sense; otherwise it's always "its" :)
I consider it essential when working with Javascript, thanks to the ~~boneheaded and objectively wrong~~ personal-opinion-based decision to make the strict equality operator longer than the coercive one. Making sure you have the right one is important, and while linters can also solve the problem, I like having it be very visual and obviously apparent.
Regarding `it's`: https://www.youtube.com/watch?v=063jQAM6N8I
(You can allow unicode to appear in source files - either in inline documentation or strings - without allowing unicode identifiers. But even in languages that support this, I usually escape non-ASCII characters)
It is however, especially today, a completely separate issue from encoding. Having more characters in ASCII won’t make a dent without having them on most keyboards, and having them on a keyboard is enough to encourage adoption without having them in the ascii code plane.
(Though they also have ASCII equivalents of those you can use instead.)