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
SI-6064 Add method contains to Option. #886
Conversation
LGTM. (How has this one not come up before...) |
That's what I'm constantly wondering, too. :-) |
LGTM, very nice. |
/localhome/hudson/workspace/pr-scala-testsuite-linux-opt/test/files/run/t6064.scala [FAILED] |
Ouch, looks like I forgot to commit the check file or something. :-/ |
The Option API more or less mirrors the Collection API, but it seems that somehow this method has been forgotten. Review: @axel22
The original issue was that I forgot to name the object
It works fine on my machine:
Any ideas? |
It appears likely it does not see your update which renamed the object. Open a new pull request. |
PLS REBUILD ALL let's see if the bot is willing first |
Started jenkins job pr-scala-testsuite-linux-opt at https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/518/ |
Btw, what do yo think about |
Isn't |
Ooops, yes you're right. I played with reflection |
Why would you ever use "find" rather than "filter" ? |
jenkins job pr-scala-testsuite-linux-opt: Success - https://scala-webapps.epfl.ch/jenkins/job/pr-scala-testsuite-linux-opt/518/ |
must this really go into 2.10? I thought we had agreed on critical bugs only (yet this is an improvement) |
@adriaanm Hey Adriaan! It is not in line with "critical bugs only", but I tried to be as responsive as possible to an issue filed by a new, external bug reporter to prevent the "thanks for reporting, we fixed it, but you won't be able to use it until 2013/2014" scenario, but that of course doesn't matter much in the grand scheme of things. |
When submitting a pull request, there is a combobox at the top now with branches in the target repo. |
Ah ok, thanks @axel22! |
Hi @soc, thank you for contributing so enthusiastically! :-) In theory I agree with your reasoning. However, I feel we really need to hunker down and get this release done. In the grand scheme of things I feel it's more important to get the 2.10 release out of the door in time (it's quite big as it is). I'm willing to make an exception for documentation, as there's no way that can cause regressions and, well, documentation is super important. This could go into 2.10.1, which shouldn't be too far away. |
No, problem! I'm not sure if merging with 2.10.x is allowed due to compatibility rules. Is compiling code with 2.10.1 and running it on 2.10.0 not supported (or was it only the other way around)? |
@paulp Do you remember the exact rules for adding a method in minor releases? As far as I understand adding Please let me know, so I can create a precise commit title for a fixed pull request against the appropriate branch. Thanks! |
I am not confident to say. I thought we were only protecting libs compiled against 2.10.0 working with 2.10.1, not the other way around, but I defer to @jsuereth. |
This can be added in 2.10.1. (a) Option is a class and (b) We don't do forwards binary compatibility, just backwards. The latest scala release used for a library is the one required. |
The Option API more or less mirrors the Collection API,
but it seems that somehow this method has been forgotten.
Review: @axel22