This makes me wonder - are there programming languages that are naturally suited to be written in some particular human language?<p>Off the top of my head:<p>Perl should be written in Welsh.<p>Lisp should probably be written in Greek.<p>not sure about others, but personally -<p>Cobol in German.
I love this kind of stuff! It's important for source code to be able to handle non-ASCII characters but we need to be mindful of the different ways that an editor will "lie" to you about your code. The most recent example of this in Rust [1].<p>> As part of their research, Nicholas Boucher and Ross Anderson also uncovered a similar security issue identified as CVE-2021-42694 involving homoglyphs inside identifiers. Rust already includes mitigations for that attack since Rust 1.53.0. Rust 1.0.0 through Rust 1.52.1 is not affected due to the lack of support for non-ASCII identifiers in those releases.<p>The easy reaction is "Why are we allowing non-ASCII characters at all? Just so we can put emojis in our variable names?"<p>This project is a good example of why we do it. But as with everything, we need to be careful about it.<p>[1] <a href="https://blog.rust-lang.org/2021/11/01/cve-2021-42574.html" rel="nofollow">https://blog.rust-lang.org/2021/11/01/cve-2021-42574.html</a>
On a related note, I've always wondered: when code is written with Chinese ideographs in identifiers (variable names etc), is it typically more compact/narrow? I always struggle with variable naming because of the tradeoff between descriptiveness and length; do ideographs help?