logoalt Hacker News

codedokodelast Tuesday at 7:57 PM2 repliesview on HN

Golang is also ugly, for example some fields start with a capital letter and some do not.

Also I don't understand how to implement transparent proxies in Go for reactive UI programming.


Replies

joaohaaslast Tuesday at 10:54 PM

If you don't care about field access just always write fields with uppercase. Any APIs you're using only expose uppercased variables as well, so it'll stay consistent.

The public/private stuff is mostly useful for publishing modules with sound APIs.

arccylast Tuesday at 9:29 PM

you don't Go is explicit about things.

maybe caps for export is ugly, it's not much different from how python hides with _

show 2 replies