kafka icon indicating copy to clipboard operation
kafka copied to clipboard

Remove Scala procedure syntax

Open joan38 opened this issue 7 years ago • 8 comments

This removes the Scala procedure syntax from the codebase as this is deprecated since Scala 2.11: https://github.com/scala/scala/pull/3076

Let me know your thoughts.

Committer Checklist (excluded from commit message)

  • [ ] Verify design and implementation
  • [ ] Verify test coverage and CI build status
  • [ ] Verify documentation (including upgrade notes)

joan38 avatar May 03 '18 21:05 joan38

This is ready to go. I will rebase once I have a first feedback.

joan38 avatar May 04 '18 09:05 joan38

@guozhangwang @debasishg Any thoughts on this?

joan38 avatar May 08 '18 11:05 joan38

cc @ijuma for reviews.

guozhangwang avatar May 09 '18 17:05 guozhangwang

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.

ijuma avatar May 09 '18 18:05 ijuma

Note this is not introducing scalafix (yet). I'm waiting on 0.6 to be released to get some stuff sorted out. See the similar PR about formatting that introduces Scalafmt: https://github.com/apache/kafka/pull/4965

makes it harder to backport changes to previous branches and it introduces conflicts to in-progress PRs

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?

joan38 avatar May 09 '18 18:05 joan38

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 avatar May 09 '18 18:05 ijuma

@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.

people have strong feelings when it comes to stuff like that

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. I will send a message to the mailing list then?

joan38 avatar May 09 '18 18:05 joan38

This PR is being marked as stale since it has not had any activity in 90 days. If you would like to keep this PR alive, please leave a comment asking for a review. If the PR has merge conflicts, update it with the latest from the base branch.

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.

github-actions[bot] avatar Oct 21 '24 03:10 github-actions[bot]

This PR has been closed since it has not had any activity in 120 days. If you feel like this was a mistake, or you would like to continue working on it, please feel free to re-open the PR and ask for a review.

github-actions[bot] avatar Nov 21 '24 03:11 github-actions[bot]