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
Checks for generic functions that have bounds for a generic parameter in both a where clause and the parameter list
Categories (optional)
Kind: pedantic
What is the advantage of the recommended code over the original code
It makes the code less confusing, having bounds in multiple places makes it easy to miss one half. Specially if it's something small, for example (From nom documentation), here it is very easy to miss the : 'a bound on F
What it does
Checks for generic functions that have bounds for a generic parameter in both a where clause and the parameter list
Categories (optional)
What is the advantage of the recommended code over the original code
It makes the code less confusing, having bounds in multiple places makes it easy to miss one half. Specially if it's something small, for example (From nom documentation), here it is very easy to miss the
: 'a
bound on FDrawbacks
None.
Example
Could be written as:
The text was updated successfully, but these errors were encountered: