fsprojects / Chessie

Railway-oriented programming for .NET
http://fsprojects.github.io/Chessie/
The Unlicense
188 stars 43 forks source link

Nicer static methods for C# #28

Closed isaacabraham closed 8 years ago

isaacabraham commented 8 years ago

To create a Result in Chessie, you have to explicitly specify both generic types e.g.: -

Result<MyMessage, string>.Succeed(myMessage)

This could be simplified by having static methods on a non-generic Result class e.g.

Result.Succeed<string>(myMessage)
isaacabraham commented 8 years ago

Closing this - I was talking rubbish. C# can't do this - you still have to specify both type args.