4 ms·
Idiomatic Java has much more boilerplate than idiomatic Go.
by icholy 7y ago
Idiomatic Java has much more boilerplate than idiomatic Go.
- bdamm 7y agoif e3 != nil { return _, e3 } over and over and over..
- zzbzq 7y agoControl flow is not boilerplate, that's the application logic.
- nicoburns 7y agoIt's boilerplate compared to languages with exceptions where this code isn't necessary, or Rust where the equivalent code is: e3? ^ Go could very easily add this syntax, but haven't for some reason.
- deleted 7y ago[deleted]
- randomidiot666 7y agoSounds like you're not aware of the changes since Java 8 (2014). This is idiomatic Java nowadays: http://sparkjava.com http://sparkjava.com
- excursionist 7y agoIdioms change, java can be much less boilerplate today.
- disintegore 7y agoJava has generics