As you see, this is ready to use deconstruction for Result[T] and Option[T] types, not just a syntactic sugar for `(…, error)` or `(…, bool)`. Meaning, it is 100% future proof.
Cons:
Frankly, I don't see any. Besides a holy laziness of course.
Ian Lance Taylor
unread,
Mar 6, 2026, 2:27:30 PM (2 days ago) Mar 6
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message