NoContent or Void function return but with typed Error
xavierjohn opened this issue · 1 comments
xavierjohn commented
Today we have
Result.cs
ResultT.cs
ResultTE.cs
To write something like
ResultE.cs
does not make sense since it will confuse the compiler.
If there was an empty NoContent class, then we can bypass this issue for void functions that only wants to return a typed Error.
Example: Result<NoContent,Error> SaveToDatabase();