@wjandrea Because in Java the semantics of assignment with primitive types and wrapper classes (like the int assignment the OP shows) is a notorious pain, but in
R it isn't; and specifically, aliasing with ints vs Integers like the OP seems to be asking about is a thing in Java. I had also checked their SO post history and saw the R. We can't be 100% sure their use-case is Java, but it isn't R (and unlikely to be C# either)...