Comments (2)
I really like this. We would need the compiler to report these values back in a programmatic way
from grain.
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)
- Grainfmt: Experiment with print_comment_range refactor
- Grainfmt: Better API for concat_map
- Grainfmt: Support `formatter-ignore` in more places
- Grainfmt: Comment lost when preceding a number HOT 1
- Formatter: Pun aliases when possible
- Formatter: Missing trailing comma on inline record fields
- Stdlib: Add `String.map` and `String.flatMap` functions
- Formatter: disallow double-breaks on attributes
- Docs: Add variant docs to Json data structure
- Cleanup: Use graindoc `Markdown` lib in lsp
- Lsp: Provide context for `use XXX.*`
- stdlib: Add `input` function HOT 2
- language: look into overloading the `array[x]` syntax to support multiple number types.
- Rework: `toString` to use a buffer HOT 1
- Decrease initial memory pages to 1 HOT 3
- Implement LEB128 stdlib HOT 1
- stdlib: Add a `TOML` library
- stdlib/runtime: Implement a basic parsing library
- Improve compilation of large list/array literals
- Redundant Operations in stdlib Set.intersect HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grain.