HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by icholy | Hacker News Reader
Parent
Full thread
icholy
·
Idiomatic Java has much more boilerplate than idiomatic Go.
View on HN
bdamm
·
if e3 != nil { return _, e3 }
over and over and over..
zzbzq
·
Control flow is not boilerplate, that's the application logic.
nicoburns
·
It'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.
excursionist
·
Idioms change, java can be much less boilerplate today.
disintegore
·
Java has generics
randomidiot666
·
Sounds like you're not aware of the changes since Java 8 (2014). This is idiomatic Java nowadays:
http://sparkjava.com
LaSombra
·
Unfortunately not many developers are.
jswizzy
·
Sorry, Android doesn't have all of Java 8 and it's mostly Kotlin now.
Reply on news.ycombinator.com