Conversation

This is beautiful, but I was wondering. Isn’t the statement on the 4 image supposed to read β€œassigning Lebron to Shaq” and not Shaq to Lebron? Or do they mean the same thing ?
1
1
In my head 'shaq to lebron' sounds like the logical way to phrase it. It's a shortened version of 'we assign (the variable) shaq to (the value of) lebron' If it were 'lebron to shaq,' we would mean 'assign the variable lebron, to the value of shaq' (eg. let lebron = shaq). No?
4
2
Not sure either is guaranteed to be clear phrasing, but I would probably flip it and treat it as: 'assign the value of lebron to the variable shaq'. Since the value is assigned to the variable. Could also do it the other way without the 'to' maybe?
1
1