Re:Yoda Conditions
by efaref on Friday February 17, 2017 @12:04PM
(#13669782)
Even then I would prefer an explicit comparison:
I think Rust has a happy medium, where assignment evaluates to (), not the variable (important as this means you don't have an implicit borrow), but the idiom expressed here is usually replaced by:
[ Parent
| on HN ]
There are no comments on this comment yet.