GithubHelp home page GithubHelp logo

LSP: Unused Statements about grain HOT 2 OPEN

spotandjake avatar spotandjake commented on June 1, 2024
LSP: Unused Statements

from grain.

Comments (2)

marcusroberts avatar marcusroberts commented on June 1, 2024

I really like this. We would need the compiler to report these values back in a programmatic way

from grain.

spotandjake avatar spotandjake commented on June 1, 2024

After the meeting today, it sounds like this needs quite a few compiler changes as we would want to implement these as warnings, and it would get very annoying if you wanted unused vars, so we need to add support for disabling warnings somehow.

I think we should also report these through the lap separately from other warnings using the DiagnosticTag, unnecessary and the severity of Hint so it's not a warning but a hint. as given grain is compiled there is no good reason to warn about an unused var as it doesn't incur runtime cost or anything.

I think we should also look into reporting unused modules and types.

from grain.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.