3 ms·
> Go is kind of odd in that even when it was new, it was kind of boring. Java was designed to be boring, too. That’s why, for example, it doesn’t have unsigned
by Someone 3y ago
> Go is kind of odd in that even when it was new, it was kind of boring.
Java was designed to be boring, too. That’s why, for example, it doesn’t have unsigned integers: it means programmers need not spend time choosing between signed and unsigned integers.
It evolved away from that.
- brabel 3y agoYeah, Java has been trying to add every feature under the Sun recently and it's definitely not a boring language anymore (since Java 21 at least, it's impossible to claim otherwise with things like pattern matching being in the language). As a Java guy, I think this is looking like a desperate attempt to remain relevant while forgetting why the language succeeded in the first place.
- kaba0 3y agoThat’s an absolutely bad take. Java is still very very conservative with every change, and they almost always have only local behaviors, so not knowing them still gives you complete understanding of a program. Like, records are a very easy concept, fixing the similar feature in, say, c# where they are mutable. Sealed classes/interfaces are a natural extension over the already existing final logic. It just puts a middle option between none and all (other class) being able to inherit from a superclass.
- neonsunset 3y agoC# records default to immutability. However, struct records being a lower level construct default to mutable (which can be changed with readonly keyword): record User(string Name, DateOnly DoB); // immutable record struct Cursor(int X, int Y); // mutable readonly record struct Point(int X, int Y); // immutable
- brabel 3y agoHey, what the hell? It's not a bad take , it's my opinion. Go with your absolutism somewhere else.
- mqus 3y agono unsigned integers gave us signed bytes. Not sure if that made things simpler.
- michaelcampbell 3y ago> > Go is kind of odd in that even when it was new, it was kind of boring. > Java was designed to be boring, too. Which is something of an irritation and bemusement to me; I remember when Java came out and the paean at the time was that it was written as a simple language, that average programmers can easily use. And was SOUNDLY SHIT ON for that. Who would want to use something for... pish posh, AVERAGE programmers!?! Then Go essentially did the same marketing move, and this was seen as some glorious genius big brain move from on high. People are funny.