You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that any2stringadd has spawned an evil twin in the form of the class StringAdd which is now an implicit class. I am not sure why StringAdd has to be an implicit class in the first place.
The text was updated successfully, but these errors were encountered:
@retronym said (edited on Feb 2, 2014 4:35:37 PM UTC): any2stringadd is deprecated and now non-implicit. But for source compatibility with the shadowing trick, we can revert that.
@odersky said:
I did not realize that any2stringadd was now non-implicit. But yes, since it is part of an important idiom we should keep the name of the implicit stable.
It's well known that the following idiom should disable String-+:
Only, it doesn't anymore. You need to write:
The problem is that any2stringadd has spawned an evil twin in the form of the class StringAdd which is now an implicit class. I am not sure why StringAdd has to be an implicit class in the first place.
The text was updated successfully, but these errors were encountered: