You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a dunet user, I want some unions to support assigning its members' inner values directly, so that my code is more terse and less noisy.
For example, we should be able to do this:
using Result =Result<System.Exception,string>;// No `new Result.Err()` required here.Resultexception=new Exception("Boom!");// No `new Result.Ok()` required here.Resultsuccess="Success!";// Compiler error.Resultinvalid=1;[Union]publicpartialrecordResult<TError,TSuccess>{partialrecordOk(TSuccessValue);partialrecordErr(TErrorError);}
The text was updated successfully, but these errors were encountered:
As a dunet user, I want some unions to support assigning its members' inner values directly, so that my code is more terse and less noisy.
For example, we should be able to do this:
The text was updated successfully, but these errors were encountered: