News for hackers. Stuff that matters.
Re:Porting 4.5K lines of C to Go by Scaevolus on Friday August 04, 2017 @07:01PM (#14933074)
Yes. If you have a struct, getters/setters are somewhat pointless, since member visibility control is only package level (protected/public depending on variable name capitalization).

For interfaces, you can only invoke methods, so getters/setters are required.

Re:Porting 4.5K lines of C to Go by vvanders on Friday August 04, 2017 @07:38PM (#14933265)
Yup, getters/setters in POJOs drive me up the wall. So much simpler in languages that have proper const/mutability qualifiers.
Re:Porting 4.5K lines of C to Go by krylon on Friday August 04, 2017 @08:15PM (#14933438)
> proper const/mutability qualifiers

I really like Go, but on the const/mutability front, it does no better than C, unfortunately.

Re:Porting 4.5K lines of C to Go by fleshweasel on Friday August 04, 2017 @08:10PM (#14933418)
so..not Go :P
Re:Porting 4.5K lines of C to Go by vvanders on Friday August 04, 2017 @09:28PM (#14933742)
Oh yeah, definitely not :)