Suggestion: Assume/Opt-Out Pure (or MustUseReturnValue)
Answered
I find that a method having an optional return value is the exception, not the norm. It would be nice if we could assume that all methods `[MustUseReturnValue]` by default, and then apply an `[OptionalReturnValue]` attribute to methods whose return values are allowed to be ignored. (And with discards, that attribute may not even be necessary.)
Please sign in to leave a comment.
Hello Dave Cousineau,
I've submitted a new feature request to YouTrack: https://youtrack.jetbrains.com/issue/RSRP-482387
Please comment or vote for the ticket to monitor status changes.
Have a nice day!
Thanks