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
Given that results aren't "noisy" like exceptions it would be useful to get a warning/error if you fail to use one. As an example, the following code should result in some sort of warning:
// some codeMethodThatReturnsAResult();// some more code
From here there's two ways I can see this going: you only need to read the Result at all to shut up the analyzer
// some codevarweNeveDoAnythingWithThis=MethodThatReturnsAResult();// some more code
Or you actually have to do something with the variable it's assigned to, and to explicitly ignore it you would need to use a discard
// some code_=MethodThatReturnsAResult();// some more code
The text was updated successfully, but these errors were encountered:
pobiega
added a commit
to pobiega/Remora.Results
that referenced
this issue
May 6, 2023
Given that results aren't "noisy" like exceptions it would be useful to get a warning/error if you fail to use one. As an example, the following code should result in some sort of warning:
From here there's two ways I can see this going: you only need to read the Result at all to shut up the analyzer
Or you actually have to do something with the variable it's assigned to, and to explicitly ignore it you would need to use a discard
The text was updated successfully, but these errors were encountered: