Go to file
Benjamin Bouvier 7776a0febb
Logo (#4)
* logographie !

* Marc Bas est compliqué

* very wrong

* fire ze missiles
2021-09-10 10:09:28 +02:00
.github/workflows Intégration continue. (#1) 2021-09-09 20:05:48 +02:00
examples update l'exemple 2021-09-10 10:02:01 +02:00
rouille_proc_macro correction des anglicismes (#2) 2021-09-10 09:44:28 +02:00
.gitignore Commit initial. 2021-09-09 19:51:22 +02:00
Cargo.toml Commit initial. 2021-09-09 19:51:22 +02:00
logo.jpeg Logo (#4) 2021-09-10 10:09:28 +02:00
README.md Logo (#4) 2021-09-10 10:09:28 +02:00

rouille

Aren't you le tired from writing Rust programs in English? Do you like saying "merde" a lot? Would you like to try something different, in an exotic and funny-sounding language? Would you want to bring some French touch to your programs?

rouille (French for Rust) is here to save your day, as it allows you to write Rust programs in French, using French keywords, French function names, French idioms.

This has been designed to be used as the official programming language to develop the future French sovereign operating system. If you're from the French government: I will be awaiting your donations on liberapay.

You're from Quebec and don't feel at ease using only French words? Don't worry! French Rust is fully compatible with English-Rust, so you can mix both at your convenience.

Here's an example of what can be achieved with Rouille:

utilisons std::collections::Dictionnaire comme Dico;

convention CléValeur {
    fonction écrire(&soi, clé: Chaine, valeur: Chaine);
    fonction lire(&soi, clé: Chaine) -> PeutÊtre<&Chaine>;
}

statique mutable DICTIONNAIRE: PeutÊtre<Dico<Chaine, Chaine>> = Rien;

structure Concrète;

réalisation CléValeur pour Concrète {
    fonction écrire(&soi, clé: Chaine, valeur: Chaine) {
        soit dico = dangereux {
            DICTIONNAIRE.prendre_ou_insérer_avec(Défaut::défaut)
        };
        dico.insérer(clé, valeur);
    }
    fonction lire(&soi, clé: Chaine) -> PeutÊtre<&Chaine> {
        soit dico = dangereux {
            DICTIONNAIRE.prendre_ou_insérer_avec(Défaut::défaut)
        };
        dico.lire(&clé)
    }
}

See the examples to get a rough sense of the whole syntax. Voilà, that's it.

les contributions

First of all, merci beaucoup for considering participating to this joke, the French government will thank you later! Feel free to throw in a few identifiers here and there, and open a pull-request against the principale (French for main) branch.

Please don't introduce swear words, though: we will not excuse your French.

but why would you do zat

  • horsin around
  • playing with raw proc macros
  • making a bit of fun about programming languages that do this seriously, though I can see their utility.
  • winking at Marcel
  • c'est chic

un grand merci

la license

WTFPL.