Should modules use upper case or lower case?

Topics: General, Language Specification
Oct 30, 2012 at 12:19 PM

TypeScript examples currently use PascalCasing for modules while it seems that camelCase is the preferred convention in many (most) existing libraries that somehow support the concept of "namespaces", e.g., goog.string.StringBuffer or see this post.

Can someone explain why TypeScript chose to use PascalCasing for modules? Or is that just something temporary for examples and modules will, in the future, use camelCasing?

Thanks.

Coordinator
Oct 30, 2012 at 8:10 PM

TypeScript is still very much a preview, so we don't have a style guide per se.  If anything, we're looking to how people use TypeScript as it matures and have that inform what best practices might be, including style.

Nov 7, 2012 at 8:50 AM

Thanks for your answer. From what I've looked at, it seems that namespaces most often use camelCase or lowercase so hopefully that will become a convention for TypeScript too (the only "danger" are .NET developers used to PascalCase naming convention :)