3 ms·
Java's core syntax is very similar to existing languages. Function signatures, loops, var declarations, error handling. Excluding access restrictors (public/pri
by Thorentis 4y ago
Java's core syntax is very similar to existing languages. Function signatures, loops, var declarations, error handling. Excluding access restrictors (public/private), you could pass it off as C/C++/C#/Python with braces/PHP without $/etc.
There isn't a ton about Java's syntax to be super opinionated on, compared to Go, simply due to how unique Go's syntax is.
- konart 4y agoIdk, I don't see much difference between Java and Go (and similar languages). But Go feel lighter and more concise. My main problem with Java code is that it's too hard to read due to endless variables\classes etc names and such. It's almost like reading some Oracle's documentation rather than reading code.
- kaba0 4y agoGo’s function signatures are very hard to parse in my opinion. Like I can literally extract every information from both C-like signatures, from Haskell-like ones as well as Scala/Kotlin-like (var: type), but Go’s is not intuitive at all.
- konart 4y agoEverything is subjective. I find it very straightforward: (x type, y, z type) (a, error) {}. Golang date formatting on the other hand... I still mad an whoever is responsible for this.