News for hackers. Stuff that matters.
Re:Rust for Web by masklinn on Sunday January 31, 2016 @03:24PM (#11007892)
> You couldn't do that in an expression, as it wouldn't type check without a value for the None case.

Of course you could. If there is no `else` (which there can be, fwiw, just as the else case is optional in a regular if/else expression), the value of the None case is Unit: http://is.gd/Zdgc3D

There are no comments on this comment yet.