-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Labels
Description
Resource types don't currently have the ability to define constructors as having custom result return error types.
For this reason, custom static constructors are likely usually preferable for resources since most constructor patterns with non-trivial arguments will want argument validation.
Would it make sense to consider result overloading only for resource constructors? I believe most languages should come with the ability to return an error from a resource constructor.
OmarTawfik, sd2k and jeff1010322