4 ms·
>Pedantry matters in our profession. Details have consequences. Well, if so, even more reason NOT to say "Java is Pass-by-Value". Instead, you should be a goo
by coldtea 9y ago
>Pedantry matters in our profession. Details have consequences.
Well, if so, even more reason NOT to say "Java is Pass-by-Value".
Instead, you should be a good pedant, and explain the Java passing model, its caveats and edge cases, in its entirety.
If details matter, don't throw some BS blanket statement like "Java is Pass-by-Value" around, that can be misinterpreted in 200 ways, and that doesn't capture the whole nuances of what's going on.
- colanderman 9y agoAs I said elsewhere in this thread, personally I use the term "pass-by-pointer-value". Barbara Liskov used the term "pass-by-sharing" (actually "call-by-sharing") when she invented the damn thing in 1974. [1] "Pass-by-reference" is simply wrong, as it implies behavior which Java does not exhibit. [1] https://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_sharing https://en.wikipedia.org/wiki/Evaluation_strategy#Call_by_sh...
- coldtea 9y ago>As I said elsewhere in this thread, personally I use the term "pass-by-pointer-value" Well, that doesn't apply exactly to ints and longs though...
- haglin 9y agoYou need a controversial title, or the topic will be ignored and not discussed here.