Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning for unused variable bindings? #8150

Closed
vicuna opened this issue May 16, 2003 · 0 comments
Closed

warning for unused variable bindings? #8150

vicuna opened this issue May 16, 2003 · 0 comments

Comments

@vicuna
Copy link

vicuna commented May 16, 2003

Original bug ID: 1691
Reporter: administrator
Status: closed (set by @damiendoligez on 2008-01-22T13:17:26Z)
Resolution: fixed
Priority: normal
Severity: feature
Fixed in version: 3.09.0
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Wheeler Ruml
Version: 3.06
OS: linux and mingw
Submission from: katsura.parc.xerox.com (13.2.18.21)

Tiny suggestion: how about an optional warning for variables that are bound but
never used elsewhere? For me, at least, this often signals a programming error
(analogous to implicitly ignoring a return value). Perhaps this would apply
only to bindings inside another let, but looking at the .cmi should allow one to
tell whether a toplevel binding could possibly be used by another module.

Just a thought. Thanks for some great software!

Wheeler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant