Closed poscat0x04 closed 1 year ago
Add a warning for simple (non-record, i.e., not of the form
{ xxx }
) function arguments that1. Does not have underscore (`_`) preceding its name 2. Not used in the function body
_
starting identifiers are now ignored from liveness check. Note that { a }: 42
will still not trigger a warning since it's different from _: 42
: the former requires the argument to be in the given form, or it will throw even without evaluating it.
Proposed feature
Add a warning for simple (non-record, i.e., not of the form
{ xxx }
) function arguments that_
) preceding its nameFor example, the following code will have this warning (on the variable
y
).While this code
or this code
will not.