Discussion about this post

User's avatar
Aaron Tagliaboschi's avatar

That's a bunch of neat ideas crammed into a few lines. The question mark operator is briefly mentioned and the Rust book, but it's a really nice pinch of syntactic sugar. And the defer object is so brilliant I'm genuinely surprised it's not in std.

I will say that overriding "Result" rubs me the wrong way really strongly. Admittently I don't know if this is a more common thing in Rust but it smells kinda funny to me

Expand full comment
Michael Krisher's avatar

Great post! I'd enjoy seeing more breakdowns of interesting snippets from Zed. I enjoy your Joy & Curiosity posts a lot as well.

Expand full comment
1 more comment...

No posts