Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
September 27, 2021 02:35 pm GMT

Write rust code without english

You reading the title, might be wondering HOW CAN YOU CODE WITHOUT ENGLISH???? you might think that i could have forked rust and changed the compiler to accept other keywords, but no.

Rust, being a very awesome language, has a nice handy feature called Procedural macros, with which we can parse code at compile time the way we want. And the other day I came across the Rouille, and then i wondered, "hmmm which language i know which i can use to make something like this?", and then i thought lets make a hindi version of this (because i didnt know any other language). But understanding proc_macros and all wasnt something i wanted to do just yet without having the fun of writing some code in hindi.

Fork

Step 1: Remove french words to be replaced with hindi words image -> image

(Yes i know that we are pretty light on the vocab, but making PRs wont hurt, please)

Step 2: Changing the readme.

THE HARDEST PART OF THIS WHOLE PROCESS.
Tho i managed to drag myself through it. And ended up with a semi-ripped off README :/

Step 3: Trying to get people to try this (this part failed miserably).

I sent my dev friends the repo to try out....
they ignored me....

Conclusion

If you find this cool go star Rouille and Zung and make PRs to add more words to the zung vocab.


Original Link: https://dev.to/rishitkhandelwal/write-rust-code-without-english-3id6

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To