Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
joeblubaugh
16 days ago
|
parent
|
context
|
favorite
| on:
Java 26 is here
In fact it was “the Java way” for many years and “useless getters” was always a big complaint about Java.
oefrha
16 days ago
|
next
[–]
Hey it's better in Go. In Java it's getFoo(). In Go it's just Foo(). Saves three bytes, and three keystrokes if you program by hand and don't autocomplete!
gf000
16 days ago
|
prev
[–]
I do agree to a certain degree, but with getters/setters you could properly hide/set to read-only fields.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: