There's definitely more nuance and depth to both features here, but I've found these explanations to help a lot with creating intuition. Which is a great starting point to start exploring the finer details later.
-
-
Show this thread
-
New conversation -
-
-
I can't understand why 'static would mean there's no borrow, do you mind elaborating a bit?
-
Hah, that's really just about it. More or less the answer to "what can be referred to using the 'static lifetime" is "anything that doesn't borrow" More info:https://twitter.com/withoutboats/status/1147095246653796352 …
End of conversation
New conversation -
-
-
`+'static` as an opt-out to borrowing is always the "mind blown" part in trainings and eases things a ton for people.
-
Also telling them that this is not "cheating".
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.