|
|
Log in / Subscribe / Register

StudlyCaps

StudlyCaps

Posted Oct 22, 2010 21:54 UTC (Fri) by foom (subscriber, #14868)
In reply to: StudlyCaps by peregrin
Parent article: Russell: On C Library Implementation

Or, if you're using the Go language, you have privateCamelCase and PublicCamelCase. :)

In Go the rule about visibility of information is simple: if a name (of a top-level type, function, method, constant or variable, or of a structure field or method) is capitalized, users of the package may see it. Otherwise, the name and hence the thing being named is visible only inside the package in which it is declared. This is more than a convention; the rule is enforced by the compiler. In Go, the term for publicly visible names is ''exported''.

Woo.


to post comments


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds