2 ms·
out vars are nice because you don't have to change the return type of the method you are editing. Tuples are kind of a drastic change that you can only easily u
by seanmcdirmid 9y ago
out vars are nice because you don't have to change the return type of the method you are editing. Tuples are kind of a drastic change that you can only easily undertake on initial design.
Also, for your example,
Option<MyType> tryGetSomething(int param) is probably better than either.