Git Product home page Git Product logo

Comments (4)

lydia-duncan avatar lydia-duncan commented on June 12, 2024 1

That seems attractive. I assume --no-warnings would quiet it today? (realizing that's a big hammer, so I don't think it's the answer).

Yup, it does

I think of us still having an outstanding design question about how, in Dyno, we'd want to squash warnings, dial errors down to warnings, warnings up to errors, etc. where one approach would be to do some sort of naming/numbering of warnings and to make the flags operate on those (what I think of as "icc"- or "cce"-style). But another would be to just continue investing in our current "warning flag per family of warnings" approach, which seems to be the way gcc has gone? Only mentioning it here because for a low-priority case like this, it might be more valuable to spend effort on wrestling with that design question and implementing it there (though even that design question isn't particularly high priority for me at the moment).

Yeah, I think keeping categorization in mind seems like a nice way of addressing it faster than it would be on its own (but agree that I wouldn't view it as high priority even then unless we realized there were quite a lot of warnings that fell into the same category)

from chapel.

bradcray avatar bradcray commented on June 12, 2024

That seems attractive. I assume --no-warnings would quiet it today? (realizing that's a big hammer, so I don't think it's the answer).

I think of us still having an outstanding design question about how, in Dyno, we'd want to squash warnings, dial errors down to warnings, warnings up to errors, etc. where one approach would be to do some sort of naming/numbering of warnings and to make the flags operate on those (what I think of as "icc"- or "cce"-style). But another would be to just continue investing in our current "warning flag per family of warnings" approach, which seems to be the way gcc has gone? Only mentioning it here because for a low-priority case like this, it might be more valuable to spend effort on wrestling with that design question and implementing it there (though even that design question isn't particularly high priority for me at the moment).

from chapel.

bradcray avatar bradcray commented on June 12, 2024

@lydia-duncan : One other thought here: We could potentially squash this warning in cases that seem sufficiently non-library like / non-confused, like:

proc main() {
  use M;
  ...
}

module M {
  ...
}

I could imagine an argument that generating the warning for a "main module" like this is overkill since it seems obvious the user is writing module-scope code that will start running the program.

from chapel.

lydia-duncan avatar lydia-duncan commented on June 12, 2024

Potentially, though I think trying to guess what the user intended has diminishing returns after a certain point.

from chapel.

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.