Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor Style Improvement #434

Open
thepigeonfighter opened this issue Aug 2, 2022 · 0 comments
Open

Minor Style Improvement #434

thepigeonfighter opened this issue Aug 2, 2022 · 0 comments

Comments

@thepigeonfighter
Copy link

thepigeonfighter commented Aug 2, 2022

With implicit generics it would make for more concise code if the public static methods for Success/Fail were moved up from Result<T> to Result.

The code would go from

Result<MyObject>.Success(obj);

to

Result.Success(obj);

Not a big change but this was a quality-of-life improvement for me so I thought I would share. I could make a pull request implementing this if desirable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant