Hertzole
Hertzole
CC#
Created by Hertzole on 12/19/2023 in #help
Use exceptions or error enum?
But it may be better for their own sake to use the result pattern? haha
8 replies
CC#
Created by Hertzole on 12/19/2023 in #help
Use exceptions or error enum?
I'm also a bit hesistant to use it because it basically forces the consumer to use a pattern that may be alien to them. Exceptions is a standard part, but heavy. Results is not a C# standard but faster and safer...
8 replies
CC#
Created by Hertzole on 12/19/2023 in #help
Use exceptions or error enum?
Yeah, I do really like the result pattern and would use it everywhere if it was a standard C# feature lol I just don't feel like providing a new result type for every library I make (because I can't use NuGet, thanks Unity! 🙄 )
8 replies