3 ms·
The modern belief is that [] should be reserved for generics[0]. In fairness, I've never seen a language actually stick to that and that's also a bit hollow whe
by jimbob45 3y ago
The modern belief is that [] should be reserved for generics[0]. In fairness, I've never seen a language actually stick to that and that's also a bit hollow when Java itself uses <> for generics in the first place.
[0]https://soc.me/languages/stop-using-angle-brackets-for-generics.html https://soc.me/languages/stop-using-angle-brackets-for-gener...
- p0w3n3d 3y agoWhat I meant is that Java by design refused to add operator overloading, because "this would decrease code readability", I mean I feel likeJava designers are trying to save me from myself, while other languages just implemented operator overloading and it works fine. When I did my M.Sc. project in Java that involved mathematics it was pain in the bum to write these matrix multiplications by methods... Almost like Reverse Polish Notation vibes