You are viewing a single thread.
View all comments 28 points
a.unwrap_or(b)
12 points
1 point
I tried picking up rust for the AoC, but any program I wrote ended up unreadable cuz of this unwrap_or. It just allows too much chaining. Then again other options for chaining operations arenβt much better, like match. Idk what Iβm doing wrong or if rust never was meant to be readable.