Personally, I think it could be a good idea to go even further and make it so let
, if let
, and switch
as a whole are ownership-neutral and just infer it from context. I mentioned this idea before, but basically, I think it would be ergonomically better if users could just use let
when they're in the middle of writing code, without committing to either a consuming or borrowing access at the moment.
2 Likes