Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The issue w/ calling it "config" is that you end up with the confusing scenario where "config" is the object and "Config" is the type, differing only in casing.


Why is that confusing? Local variables are, idiomatically, never capitalized in Go, so the distinction is obvious at a glance.


Sorry. To clarify: it's not that I'm confused by the distinction between capitalized vs uncapitalized, it's that visually, "config" and "Config" look quite similar at a glance, whereas "c" and "Config" are clearly visually distinct.


As are unexported objects.


Yeah, getting to idiomatically capitalize names has been pressure to move them to their own package in the past, which feels awkward.


This is a fairly go-specific issue due to its unexported vs exported convention. Many languages solve this through case conventions




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: