Hacker News new | past | comments | ask | show | jobs | submit login

> Perl – While Perl's keywords and function names are generally in English, it allows modification of its parser to modify the input language, such as in Damian Conway's Lingua::Romana::Perligata module, which allows programs to be written in Latin or his Lingua::tlhInganHol::yIghun Perl language in Klingon. They do not just change the keywords but also the grammar to match the language. That's impressive



As an example just how far they go, the statement:

clavis hashus nominamentum da.

Is equivalent to [1]:

@keys = keys %hash;

And in Klingon Perl [2]:

De'pu'wI' bIH yInob!

Is equivalent to:

%data = @_;

[1] https://metacpan.org/module/DCONWAY/Lingua-Romana-Perligata-...

[2] https://metacpan.org/module/Lingua::tlhInganHol::yIghun




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: