by rom1v · 5mo ago · 0 comments
What is unclear to me is why the decision to use a Point instance as a value or as a reference is made in the class definition rather than by the caller.
> Point[] point = new Point[10];
For the same class, I might need an array of values in one place and an array of references elsewhere within the same codebase.
Conversely, if it auto-copies now you have to contend with runtime state changing the pass semantics?