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

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.




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

Search: