@notgull Hello! I liked your post on block patterns at https://notgull.net/block-pattern/ ; I do this too.

What I'm really missing from Rust is something like R's right assignment operator; the block pattern would be so much more readable if you could put the destination variable *after* the block like this:
{
let x=1;
let y=2;
x+y
} -> z;

Rust’s Block Pattern

Here’s a little idiom that I haven’t really seen discussed anywhere, that I think makes Rust code much cleaner and more robust.

notgull
@notgull (I'm not here very much, still mostly on bsky and twitter)