Skip to content

Mehmovic/csharp-result-lib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ResultLib

ResultLib was born from my passion for Rust and my deep love for C#. As a strong advocate of the Result pattern, I strive to minimize the use of try/catch blocks whenever possible. While exceptions are a fundamental part of C#'s design, this library provides a structured approach to error handling that aligns with the principles of functional programming and type safety.

With these lightweight structs, I can write more expressive and predictable code—reducing reliance on exception-driven control flow while keeping the logic clean and efficient.

I welcome your feedback, suggestions, and contributions to improve this project further. Let's build something powerful together!

Default

.NET 9.0

C# Version: 12.0

Unity Compatibility

Version: 2022.3.43f1 but should work with lower versions too.

.NET Standard 2.1

C# Version: 9.0

Open Unity, go to Window → Package Manager

Click the + button in the top-left corner

Select "Add package from Git URL..."

and enter the url:

https://github.com/Mehdikovic/csharp-result-lib.git#unity

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages