Skip to content

Comment on Is Python call-by-value or call-by-reference? Neither.

Comments

this is over complicating the model to avoid saying what for some reason people are terrified to say: that objects are just pointers. when you pass an object you are passing the value of a reference. it's not that scary

That's confusing the language specification with one of its implementations. In Jython, for example, objects are not "just pointers".

no, they are still just pointers. they might be pointers to something fancier than a struct of its instance variables and abstracted by java's object system but in the end it's still a pointer

I have the impression than anyone who has issues with this never experienced programming in assembly.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.