Hacker News new | ask | show | jobs
by slim 1944 days ago
it's not a choice, we program LTR and in latin because it's a requirement of all programming languages (apart from insignificant exceptions)
2 comments

There have been a couple of big HN threads about this - but IIRC, it's an art project rather than an executable language:

قلب: a non-ASCII programming language written in Arabic - https://news.ycombinator.com/item?id=21352508 - Oct 2019 (623 comments)

Ramsey Nasser's Arabic programming language artwork - https://news.ycombinator.com/item?id=7700691 - May 2014 (108 comments)

FWIW, it's the same in Israel.

Despite Hebrew and Arabic being right-to-left languages, all coding is done in normal left-to-right Latin (really, English) programming frameworks.

As Dalia noted, all major programming languages are left-to-right with Latin alphabet, and their frameworks/SDKs/APIs are filled with English words for functions and classes.

This can be amusingly seen peeking through in PHP sometimes. The scope-resolution operator appears in the code as "Paamayim Nekudotayim" (double-colon in Hebrew, for non-speakers). You can see it in parse errors:

> $ php -r :: > Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM

https://en.wikipedia.org/wiki/Scope_resolution_operator#PHP

People then keep the IDEs in English? Or the UI is set up to the right-to-left flow, only the text blocks with the code itself are left-to-right?
My Iranian coworker leaves everything in English for what it’s worth. I can ask her what she would prefer and why?
we keep it in LTR although some prefer to set up the IDE for their preferred latin based non english language. it's because some software messes RTL and the translations for the technical keywords in arabic are not standardized. For example I can't tell you what "Refactoring" would be translated to in arabic