3 ms·
Why would operator overloading be absolutely critical? Just use methods. The pipe operator already has around 15 uses and counting, it doesn’t need more
by callamdelaney 1y ago
Why would operator overloading be absolutely critical? Just use methods. The pipe operator already has around 15 uses and counting, it doesn’t need more
- saagarjha 1y agoBecause writing a.add(b).divide(c) is miserable
- CraigJPerry 1y agoThat's a fine approach for "plumbing" type work, you know "join this thing to that thing then call that thing" - and that is most of the code in the world today but it falls apart in math heavy code. You really just want operators when you're performing tons of operations, it's an absolute wall of text when it's all method calls.
- ogogmad 1y agoInstead of writing 2+2, you're suggesting writing 2.plus(2) or plus(2,2).