I noticed that Addable is deprecated, while Subtractable is not. What’s wrong with Addable, and why is Subtractable different?
I noticed that Addable is deprecated, while Subtractable is not. What’s wrong with Addable
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The problem is that
+is overloaded to concatenateStringto non-strings. So, whenever you use the+method on a type that doesn’t have it, you’ll get an error message that is not related to the real problem: that the type you have isn’t the one you expected.There’s
+:and:+to replace it.