3 ms·
When looking at C#, which has operator overloading, did things really go that bad? What makes Java people think it would be worse than that?
by nikeee 6y ago
When looking at C#, which has operator overloading, did things really go that bad? What makes Java people think it would be worse than that?
- wvenable 6y agoC++ overdid operator overloading in their libraries, etc. This is what Java developers saw at the time and decided not to include it. But I agree that C# proves that we all learned our lesson and operator overloading is now just mostly used for numbers.
- legulere 6y agoImplicit casts can be a bit dangerous in C#, but the bigger problem is that you cannot generically use operators like you can with type classes in Haskell.