-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Remove Scala procedure syntax #4964
Conversation
NoValInForComprehension RemoveXmlLiterals ProcedureSyntax ExplicitUnit
This is ready to go. I will rebase once I have a first feedback. |
@guozhangwang @debasishg Any thoughts on this? |
cc @ijuma for reviews. |
Thanks for the PR. I think we eventually want to do something like this, but it's a bit invasive as it makes it harder to backport changes to previous branches and it introduces conflicts to in-progress PRs. It may make sense to discuss the usage of scalafix in the project and which rules we want to apply, etc. There is a JIRA for using scalastyle, but we never took that to completion. |
Note this is not introducing scalafix (yet). I'm waiting on 0.6 to be released to get some stuff sorted out.
Is this a reason strong enough to continue using a deprecated language feature that we will have to remove anyway at some point when it will be completely dropped? Do you have any suggestions on how can we do better? |
In this case, the feature itself is harmless and the benefit is small, so it's lower priority than some of the other things we have to do for the upcoming release. For the scalafmt PR, we probably need to discuss it in the mailing list since it's even more disruptive and people have strong feelings when it comes to stuff like that. |
@ijuma I see, let's keep this PR open until I manage to add scalafix so that it will add more value like linting and automatic refactoring with other potential rules.
Indeed this is why Scalafmt would remove these feelings since there would be a rule settled for everyone. Personally I have no preference except consistency across the codebase and the peace of mind of not having to think about that because it will be taken care by a tool. |
This PR is being marked as stale since it has not had any activity in 90 days. If you If you are having difficulty finding a reviewer, please reach out on the [mailing list](https://kafka.apache.org/contact). If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed. |
This PR has been closed since it has not had any activity in 120 days. If you feel like this |
This removes the Scala procedure syntax from the codebase as this is deprecated since Scala 2.11:
scala/scala#3076
Let me know your thoughts.
Committer Checklist (excluded from commit message)