Re:Rust for Web
by CuriousSkeptic on Sunday January 31, 2016 @07:13PM
(#11008812)
Granted. But a unit expression is only useful for its side effect so I guess I put that in the gray area between paradigms, not really in the spirit of only evaluating expressions. Which brings us back the point of my comment: It's almost certainly a bad idea.
Isn't
just syntactic sugar for meaning the type of expr2 must be unit, and thusly if let is always of unit type?