Why you cannot write Rust programs in your native language? Do you shy of it? Would you like to try something different, in an exotic and lovely sounding language? Would you want to bring some Kazakh hospitality to your programs?
тот (Kazakh for Rust) is here to save your day, as it allows you to write Rust programs in Kazakh, using Kazakh keywords, Kazakh function names, and Kazakh idioms.
I hope that this language will be selected to write all future government systems in Kazakhstan to reach digital sovereignty.
If you're aga from the Kazakhstan, find my email in the profile and reach for cooperation (wink, wink).
Here's an example of what would would be if programming languages was invented by Kazakh people. Right now in Тот:
tot::тот! {
сыртқы жәшік tot;
пайдалану std::collections::ХэшМап ретінде Сөзд;
қасиет КілттікМән {
фн жазу(&өзім, кілт: Жол, құндылық: Жол);
фн алу(&өзім, кілт: Жол) -> Нәтиже<Опция<&Жол>, Жол>;
}
статик өзг СӨЗДІК: Опция<Сөзд<Жол, Жол>> = Жоқ;
құрыл Concrète;
асыру КілттікМән үшін Concrète {
фн жазу(&өзім, кілт: Жол, құндылық: Жол) {
беру сөзд = қауіпсіземес {
СӨЗДІК.алу_немесе_енгізу(Әдепкі::әдепкі)
};
сөзд.кірістіру(кілт, құндылық);
}
фн алу(&өзім, кілт: Жол) -> Нәтиже<Опция<&Жол>, Жол> {
егер беру Кейбір(сөзд) = қауіпсіземес { СӨЗДІК.сіл_ретінде() } {
Жарайды(сөзд.алу(&кілт))
} басқа {
Қт("сөздікті алып келу".ішіне())
}
}
}
}See the examples to get a sense of the whole syntax.
First of all, рахмет for considering participating to this joke, you will have opportunity sell this to Kazakh government later! Feel free to throw in a few identifiers
here and there, and open a pull-request against the негізгі (Kazakh for
main) branch.
Be civil, don't use swear words. We should show hospitality to the visitors of this repo.
- Dutch: roest
- German: rost
- Polish: rdza
- Italian: ruggine
- Russian: Ржавый
- Esperanto: rustteksto
- Toki Pona: jaki kiwen
- Hindi: zung
- Hungarian: rozsda
- Chinese: xiu (锈)
- Spanish: rustico
- Korean: Nok (녹)
- Finnish: ruoste
- Arabic: sada
- Turkish: pas
- Vietnamese: gỉ
- Japanese: sabi (錆)
- Danish: rust?
- Marathi: gan̄ja
- Romanian: rugină
- Czech: rez
- Ukrainian: irzha
- Bulgarian: ryzhda
- Slovak: hrdza
- Catalan: rovell
- Corsican: rughjina
- Indonesian: karat
- Greek: skouriasmeno
- Thai: sanim (สนิม)
- Swiss: roeschti
- Swedish: rost
- Croatian: hrđa
- Persian: zangar (زنگار)
- Malagasy: arafesina
- Latin: ferrugo
- Norwegian: korrosjon
- Estonian: rooste
- Kannada: tukku (ತುಕ್ಕು)
- Nepali: khiya (खिया)
- Sanskrit: jangam
- Scottish Gaelic: meirg
- French: rouille
- All of the above: unirust
- @VentGrey for making a logo!
License Publique Rien à Branler, le official translation of the WTFPL by the same author.