-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Make compiler throw warnings #11
Comments
I think we should just throw warnings for deprecations and leave everything else to some kind of lint mode extension.
|
Thanks, @bob-carpenter ! |
@bob-carpenter , @seantalts , I currently have a local solution to this issue. However, it generates quite wordy warnings for a lot of files and I'm not sure what is most desirable. It generates warnings like
for every use of a deprecated construct in a file. Some files have many deprecated constructs in them, so we get a lot of these warnings. For instance, on the file
we get the warnings
I could of course make the warnings less verbose or make sure at most one warning gets thrown per file, but that might also make them less useful. What is desirable here in your opinions? |
Update: I have now pushed my local implementation with the behaviour described above. If you would prefer a different kind of behaviour, I'm happy to change it! |
I'd be OK either way---nagging people with a warning on every one or just flagging the first. The former seems like a lot less stateful and thus easier to maintain, so that seems like the natural way to go.
… On Jan 11, 2019, at 10:18 AM, Matthijs Vákár ***@***.***> wrote:
Update: I have now pushed my local implementation with the behaviour described above. If you would be prefer a different kind of behaviour, I'm happy to change it!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Great! Then, this should be solved. Thanks, @bob-carpenter ! |
We need to throw warnings for deprecated constructs.
Are there any more that are desired?
The text was updated successfully, but these errors were encountered: