Skip to content

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

Comments

I genuinely can't tell if you're trolling by calling Java a "less well known niche language".

As for Python being bizarre, it's just call-by-value, as has been pointed out elsewhere. The only arguably bizarre part is that all values must be pointers to objects. But I target like that consistency. I prefer it to Java, where I always have to think about whether a variable is an object pointer or a primitive type.

As far as I can tell, he was being entirely sarcastic.

It didn't occur to me that here on HN one could actually get away with calling Java or C# a "niche language", since they are some of the most popular languages out there (though less so in the HN bubble, partly deservedly so I'd say, but still).

AboutSource Built by g1lg1l

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