Re:Tuples goodness in .NET 4.7.1
by seanmcdirmid on Monday March 12, 2018 @12:52PM
(#16569461)
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.
Also, for your example,
Option<MyType> tryGetSomething(int param) is probably better than either.