Pop quiz: Passing objects in Java is:
-
-
Replying to @ManishEarth
Technically no answer is correct unless you separate "pass by value of reference" or "pass by reference to reference"
1 reply 0 retweets 1 like -
Replying to @sgrif @ManishEarth
Granted, I think that differentiation really only matters if you come from C/C++ (or I guess Rust now).
1 reply 0 retweets 0 likes -
Replying to @sgrif
Rust doesn't have pass by reference either. Rust, Java, Python, JS all have pass by value and "pass ref by val" (which is a subset)
2 replies 0 retweets 0 likes -
Replying to @ManishEarth
I usually differentiate by the ability to pass a pointer to a stack var (even if it is pass by value under the hood)
1 reply 0 retweets 0 likes -
Replying to @ManishEarth
I guess assignment is more implicit in true pass by reference
12:59 PM - 1 Feb 2017
from Ottawa - Gatineau
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.