Follow

This looks awesome!

if-let-chains:
rust-lang.github.io/rfcs/2497-

It allows the following:
if let Some(Foo::Bar(_)) = foo.bar(baz)
&& let Some(qux) = foo.drix() && let Some(bla) = qux.do() {
i_am_hungry(qux, bla);
}

"The readability of programs is often about the degree to which the code corresponds to the mental model the reader has of said program. Therefore, we should aim to bring the language closer to the mental model of the reader.":
rust-lang.github.io/rfcs/2497-

I ❤️ this!

· · Web · 0 · 1 · 2
Sign in to participate in the conversation
Mastodon for Tech Folks

This Mastodon instance is for people interested in technology. Discussions aren't limited to technology, because tech folks shouldn't be limited to technology either!