I
I
Ingerniated2017-09-06 14:23:39
Programming
Ingerniated, 2017-09-06 14:23:39

How is Unicode replacement possible?

Good afternoon, tell me, is there a unicode of the alphabet, there is a unicode of pictures, icons and other things.
How is it that after replacing letters with symbols, the code works?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mercury13, 2017-09-06
@Ingernirated

Obviously, the programming language translator is quite liberal about "what an identifier is". And all these emoticons and shit (yy, shit emoji appeared not so long ago) are also considered letters. However, there is a small trap here: if you compose the same character in different ways - for example, "and + short" against a monolithic "y" - these will be different identifiers.
UPD. See how it's done in Java. Any character that is a Unicode letter will do. At least according to Gosling's specification.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question