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
Warn on mis-indented code #12682
Comments
@smarter, what was the other warning requested in the meeting? |
I don't remember a specific warning coming up ? |
Is this already decided? No hope for SIP committee to veto it? |
It's still possible. This is just the subset of things that the new syntax would need of Scala 2 and make sense even without a new syntax in Scala 3. |
This issue is meant to be independent of that, because the idea is to limit ourselves to improvements that will improve the Scala 2 experience.
In the one example I mentioned above, the idea would be to take the information encoded in indentation to give better warnings when a user forgets a closing brace/paren. |
I think the confusion stems from the use of "eventual" in the title which usually means "inevitable" in English but which I assume Adriaan used to mean "possible" because of the false friends https://en.wiktionary.org/wiki/eventueel#Adverb / https://en.wiktionary.org/wiki/%C3%A9ventuel#Adjective ;). |
I've transferred this over from scala-dev and narrowed the scope to just warning on mis-indented code. |
Scala 3 will have a few syntax "tweaks" -- we should already provide warnings in the 2 series where possible.
In general, I'm in favor of warning about things that don't make sense even without considering the 3.0 upgrade. For indentation, that would include:
The text was updated successfully, but these errors were encountered: