camel case method names

camelcasing, naming-conventions

Solution

A lot of conventions say you capitalize the first letter of types (classes, structs, enums, etc.), and use lowercase otherwise (functions, members, etc.).

If you follow that convention, you can then tell just by looking that `MyStruct.MyType` refers to a nested type, and `MyStruct.myData` refers to some form of data, and `MyStruct.myFunc()` refers to a function call.

Problem

I understand the reason to camel case variable names, but I've always wondered why you would camel case a method name? why is it toString() and not ToString()? What purpose does it serve?

Original source