A question on modification of a list via a function invocation

Steve D'Aprano steve+python at pearwood.info
Fri Aug 18 20:40:04 EDT 2017


On Sat, 19 Aug 2017 12:43 am, Stefan Ram wrote:

> Ben Bacarisse <ben.usenet at bsb.me.uk> writes:
>>Steve D'Aprano <steve+python at pearwood.info> writes:
>>>"Java is call by value, dammit!"
>>I don't think this is a fair point.  You will run out of ideas if they
>>are to be avoided because some people will get the wrong idea when
>>reading part of a description of that idea applied to some other language.
> 
>   You are trying to cool off the topic. An expression such as
>   "da...t!" should be avoided in a cold topic. But otherwise,
>   "Java is call by value." is just fine.

Apart from being technically wrong and deeply misleading, yes it is fine.

And "Java is call by value, dammit!" is not my words, it is (almost) the actual
title of the piece by Scott Stanchfield.

http://javadude.com/articles/passbyvalue.htm

(I made a mistake: Scott calls it "Pass-by-Value".)

The precise, exact, copy-and-paste title used by Scott for his essay is:

Java is Pass-by-Value, Dammit!




-- 
Steve
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.




More information about the Python-list mailing list