Anyone know why updating a mutable nested data structure does not work in Rust? https://play.rust-lang.org/?gist=7d1c74757721030f59b58954e19028b4 ….
It's connected to how lifetimes are based on scopes. One workaround is tail recursion: https://play.rust-lang.org/?gist=232ddf02aec2b77a93204dbd9aa1257c&version=stable&backtrace=0 …
-
-
it's auto-reborrowing of &mut isn't it?https://twitter.com/glaebhoerl/status/777138476949053440 …
-
ah, I see the follow-up now. I think most specifically it is this issue https://github.com/rust-lang/rfcs/issues/1751 … but I've not dug deeply
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.