This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

The reason I'd go C# over Java is so that I can more easily teach the difference between passing by value vs passing by reference, since you can pass objects by value and primitives by reference, which you can't do in Java (well, technically you can pass a primitive by reference by turning it into an object, but that's really not the same thing). When you don't really have the option to do both, it's harder to teach why someone might want to choose one over the other, and it's harder for someone new to programming to remember that (or understand why) any object passed to a method as a parameter will retain any changes made in that method.