
Tech Talk: Moves and Borrowing In Rust With Jim Blandy
CoRecursive: Coding Stories
00:00
Cplus Plus Assignments - The Basics of Python Programming
In python, assignment can consume arbitrary amounts of time and memory. If you take that list of three strings and you assign it to two other variables, you will have copied the entire thing over twice. And so this is kind of surprising, right? Because you'd think the imean assignment is such a primitive operation. It's the same for like, passing values to functions onorgonal building data structures. These are all onot this, this this fundamentalop assignments like operation. In python, its cheap to assign, but then you have to have a complicated thing to track when to get rid of things.
Transcript
Play full episode