Skip to content

Latest commit

 

History

History
101 lines (81 loc) · 4.12 KB

README.md

File metadata and controls

101 lines (81 loc) · 4.12 KB

rust uf Schwizerdütsch

Aren't you müed from writing Rust programs in English? Do you like saying "huere schafsäckel" a lot? Would you like to try something different, in an exotic and funny-sounding language? Would you want to bring some Schwizerdütsch touch to your programs?

roscht (Schwizerdütsch/dütsch for Rust) is here to save your day, as it allows you to write Rust programs in Swissgerman, using Swissgerman keywords, Swissgerman function names, Swissgerman idioms.

This has been designed to be used as the official programming language for every bünzli

If you want to pay someone for this, pay the french guy. I only adapted his work. He does some nice shit. Worth a look. If you still want to support me just star this repo that will make me happy. His Repo
His liberapay.

chlises bispil

roeschti::roeschti! {
    bruch std::collections::Dictionär als Dico;

    eigeschaft schlüsselwärt {
        funktion schrib(&selber, schlüssel: Zeichecheti, wärt: Zeichecheti);
        funktion lis(&selber, schlüssel: Zeichecheti) -> Vilicht<&Zeichecheti>;
    }

    statisch veränderbar DICTIONÄR: <Dico<Zeichecheti, Zeichecheti>> = Nüt;

    struktur Konkret;

    implementiere schlüsselwärt für Konkret {
        funktion schrib(&selber, schlüssel: Zeichecheti, wärt: Zeichecheti) {
            lahn dico = unsicher {
                DICTIONÄR.hole_oder_ifüege_mit(Standart::standart)
            };
            dico.infüege(schlüssel, wärt);
        }
        funktion lis(&selber, schlüssel: Zeichecheti) -> Resultat<Vilicht<&Zeichecheti>, Zeichecheti> {
            falls lahn Espaar(dico) = unsicher { DICTIONÄR.as_referenz() } {
                Oke(dico.lis(&schlüssel))
            } susch {
                Fähl("Usem dico usehole".in())
            }
        }
    }
}

Mitmache

First of all, merci for considering participating to this joke, the Swiss government and Roger Federer will thank you later! Feel free to throw in a few identifiers here and there, and open a pull-request against the hauptast (Swissgerman for mainbranch).

Please don't introduce swear words.

but why would you do zat

  1. why are you looking at this? Same reason
  2. Reason 1

Other languages

d'Lizenz

Öffentlichi Lizenz, wenn da druf drucks chaschs au nomal uf französisch lese,