Skip to content
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

Deprecate Gen-taking forAllNoShrink #2

Conversation

dwijnand
Copy link

Swap the impls, so the deprecated API calls the not deprecated API.

Swap the impls, so the deprecated API calls the not deprecated API.
@charleso
Copy link
Owner

I think I'd worry about the impact of this change a little more. Not because it's not a good thing to do (it is), but because if someone has deprecated warnings as errors turned on (like we do for our projects), this is going to require lots of refactoring.

Thoughts?

@charleso charleso merged commit 7fbb1d2 into charleso:topic/forall-gen-no-shrink Nov 24, 2018
@dwijnand dwijnand deleted the Gen.forAll-without-Shrink branch November 24, 2018 11:27
@dwijnand
Copy link
Author

Thoughts?

My thoughts are that -Xfatal-warnings is a very blunt tool, which always has that effect. It's a sad state of affairs, and one we should fix, but I don't think it should halt changes like this, at least not always.

@dwijnand
Copy link
Author

Oh! Reading scala/bug#8410 it looks like you can disable deprecation warnings with -deprecation:false? TIL. So that's the stopgap you can use while transitioning. It's still a little blunt (being all deprecation warnings), but it's something.

@charleso
Copy link
Owner

but I don't think it should halt changes like this, at least not always.

Fair enough. I love -Xfatal-warnings for the most part, but the lack of finer controls for ignoring deprecation warnings is sorely missing.

@dwijnand
Copy link
Author

It might finally be coming: scala/scala-dev#333

@charleso
Copy link
Owner

It might finally be coming: scala/scala-dev#333

Awesome! Thanks for the link, that's good to know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants