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
Sure, but it's the one that is visible to the user. (And the one that I can keep straight coming from dynamic langs)
1 reply 0 retweets 0 likes -
Replying to @sgrif
Yep, because PBR doesn't exist in many dynamic langs -- that axis isn't important anymore :)
1 reply 0 retweets 0 likes
PBR also doesn't exist in Canada. :trollface:
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.