Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Hazarth95023yA whole new world just opened for you!!!
Mainly the world of frustration when languages like Java don't allow it! -
Hazarth95023y@devapsarl
Best example case for custom classes, say a Matrix class can overload Operators so you can do Matrix multiplications like
m3 = m2 * m1;
Instead of
m3 = m2.multiply(m1); -
@Hazarth ah, that sounds about right. For a minute I also thought: "WTF". Minute later: "That's a time saver!"
No wonder that Python is adored among STEM specialists. It's just one of those things that'd prove decisive in choice of language sometimes. -
@Hazarth yes but let’s be real: vectors are the prime example for operator overloading 😄
what!
I didn't know you could overload an operator.
random