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

StringLike gone, but vestiges remain #11623

mslinn opened this issue Jul 10, 2019 · 1 comment


None yet
4 participants
Copy link

commented Jul 10, 2019

Searching through the Scala source, I see a few references to StringLike, but the scala.collection.immutable.StringLike trait is no more. Looks like it got subsumed into scala.collection.StringOps.

$ git grep StringLike
spec/> [scala.collection.immutable.StringLike]( spec/> `StringLike`, the method is applicable to all strings.
test/files/pos/overloaded_ho_fun.scala:class StringLike(xs: String) {
test/files/pos/overloaded_ho_fun.scala:  val sl = new StringLike("a")
test/junit/scala/collection/immutable/StringLikeTest.scala:class StringLikeTest {

This comment has been minimized.

Copy link

commented Jul 10, 2019

The spec example should be removed, as it's just an example of the library and not syntax.

Maybe it could stay in the late chapter on the library, but probably not even that; that chapter is for more fundamental library concepts and it is probably also out of date again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.