Idiomatic snippets


#1

Hello Developers
I set up a website about how one would perform common programming tasks in the most idiomatic form in different languages. It is intended to be didactic, it’s open to contributions (like a wiki) and I’d love to have more snippets written in RUST.
It would hugely help if a few of you picked a random idiom statement :
http://www.programming-idioms.org/random-idiom
and clicked [(+) New implementation…] to write a RUST implementation. Most often, 2 lines suffice.

As you can see in the language coverage page, we don’t have many Rust impl yet (click >> to reveal more than the 12 first langs).
You’re also very welcome to add new idioms, as long as it’s not rust-specific, not tied to a library, and not a complex algorithm.
UI works fine but is not perfect yet, so any feedback is also welcome.

Cheers
Val


#2

Broken link: http://www.programming-idioms.org/list-by-language/Rust


#3

Thanks Stebalien! I fixed it.


#4

Thanks to your efforts, Rust quickly jumped to become the 7th most populated language on the site. Great!!


#5

I want to honestly thank you for that website.


#6

I’ve added a bunch of snippets yesterday and today, most with a link to https://play.rust-lang.org/. If you think any of my entries are not idiomatic, feel free to change them :slight_smile:


#7

I did not link to play.rust-lang.org, shame on me.