[HN Gopher] Rost - Write rust code in German
___________________________________________________________________
Rost - Write rust code in German
Author : michidk
Score : 46 points
Date : 2021-11-09 08:24 UTC (1 days ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| Bayart wrote:
| Seems like the ideal language to write a new, European and
| sovereign implementation of Marcel, the French docker.
| bryanrasmussen wrote:
| This makes me wonder - are there programming languages that are
| naturally suited to be written in some particular human language?
|
| Off the top of my head:
|
| Perl should be written in Welsh.
|
| Lisp should probably be written in Greek.
|
| not sure about others, but personally -
|
| Cobol in German.
| mkl95 wrote:
| Python should be written in English.
| woodruffw wrote:
| I'm not sure if I agree with it, but you could make an argument
| that programming languages are colored by the L1 languages of
| their initial designers. So you might see a bit of Japanese in
| Ruby, and a bit of Brazilian Portuguese in Lua. But programmers
| in general tend to have excellent English and are inspired
| overwhelmingly by languages written by English speakers, so
| it's difficult to evaluate.
| bryanrasmussen wrote:
| I guess Ruby's compatibility errors for incompatible
| encodings comes from familiarity with Japanese encodings
| which presents problems most American programmers would be
| unfamiliar with.
| moffkalast wrote:
| Total verruckt
| VWWHFSfQ wrote:
| 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].
|
| > 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.
|
| The easy reaction is "Why are we allowing non-ASCII characters at
| all? Just so we can put emojis in our variable names?"
|
| This project is a good example of why we do it. But as with
| everything, we need to be careful about it.
|
| [1] https://blog.rust-lang.org/2021/11/01/cve-2021-42574.html
| rnestler wrote:
| Die Ironie wenn das LIESMICH in Englisch ist.
|
| The irony when the README is in English.
| tyingq wrote:
| I would have thought Java a better match for German and the long
| compound words.
| smoldesu wrote:
| Germans and Powershell: a match made in Himmel
| d--b wrote:
| Gotta love Europe!
| _the_inflator wrote:
| I enjoyed the code walk-through. :D
___________________________________________________________________
(page generated 2021-11-10 23:02 UTC)