Open atefBB opened 3 years ago
لما لا، يمكنك إقتراح كلمات بالإستعانة بهذا الرابط بداية السطر 60 إلى السطر 90 https://github.com/azizamari/Ncodi/blob/master/src/Ncodi/CodeAnalysis/Syntax/SyntaxFacts.cs
So, this is a REALLY bad idea without introducing some sort of alternative syntax/compilation, as mixing Arabic & Latin characters inevitably leads to chaos.
There is actually prior art with Arabic programming languages, the Qalb is indeed one example (and the only one I'm aware of). But as you can see, the language is exclusively using right-to-left Arabic characters.
This is due to the ~wonderful~ world that is Unicode, this is due to the right-to-left mark or Arabic letter mark. We all have come across this issue, when writing a sentence with our phones or computers using both Arabic and Latin words, suddenly, it becomes a mess. When you're going right and left, you're jumping from some place to the other, when you press backspace to delete something you actually delete the wrong word, etc... Because Latin and Arabic are written in another direction, mixing them will only lead to chaos. And that's not even the only issue: Should we also use Arabic or Indian numerals (and I don't even know in what direction are Indian numerals written, and just writing a number with the right-to-left mark may also lead to chaos and the number being in the wrong direction)? What direction do the equations become? Should comparison be inverted (So > becomes less than instead of greater than)?
All these issues makes it impossible to implement both keywords at the same time. On the other hand, though, it could be possible to write two different syntaxes, one left-to-right and the other one exclusively right-to-left, like Qalb. But, both should be incompatible with each other (or introducing a mechanism to translate function & variable names should be implemented) and have a duplicated standard library with translated functions.