Expressions are undervalued in Rust!
Couldn't find a good teaching resource about what makes them so awesome... so I wrote one.
https://corrode.dev/blog/expressions/
Feedback welcome.
[#]rustlang #rust
=> More informations about this toot | More toots from mre@mastodon.social
@mre Thanks for the sharing. I like the match arm guards.
=> More informations about this toot | More toots from btel@mastodon.social
@btel yeah, I want to write another one on pattern matching specifically. Really hard to find good resources beyond the basics.
=> More informations about this toot | More toots from mre@mastodon.social
@mre cool, I am looking forward to it. Btw it might be useful to provide links to playground with the examples do one can play with them. Here's what I tried : https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=e433aba990622c9c88d7947317370adb
=> More informations about this toot | More toots from btel@mastodon.social
@btel yes, I do that from time to time, but I need to get more consistent with it.
=> More informations about this toot | More toots from mre@mastodon.social
text/gemini
This content has been proxied by September (3851b).