IssueRaiser

compile errors for unused things

* [ ] compile error for unused non-pub global variable * [x] compile error for unused local variable * [ ] compile error for unused non-pub function decl * [ ] compile error for unreachable code (astgen only) * [ ] ~even unused pub functions are an error if they are not accessible from outside the package~ * [ ] compile error for unused *assignments* to variables Note that because of conditional compilation, some things may seem unused when they are in fact used but only depending on some compile variables. Some thought will have to be put into how to make this work without sacrificing compile speed or lazy evaluation.

Posted by andrewrk on Apr 19, 2017, 6:10 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments

github (Other)

compile errors for unused things

andrewrkApr 19, 2017, 6:10 AM

* [ ] compile error for unused non-pub global variable * [x] compile error for unused local variable * [ ] compile error for unused non-pub function decl * [ ] compile error for unreachable code (astgen only) * [ ] ~even unused pub functions are an error if they are not accessible from outside the package~ * [ ] compile error for unused *assignments* to variables Note that because of conditional compilation, some things may seem unused when they are in fact used but only depending on some compile variables. Some thought will have to be put into how to make this work without sacrificing compile speed or lazy evaluation.

Comments (0)

No comments yet. Start the discussion.

Comment on this issue