I'm a big "C Style" fan, which I would describe as exactly what you have posted. It took me a very long time to get used to the "JS" style of
function a(int argc) {
...
}
But its growing on me... Now personally I much prefer variables in a camel case style with a description of the type so instead of
int argv;
it would be
int nArgv;
However that makes little sense in a loosely typed language which is why I am now starting to lean towards the GoLang approach of public variables starting with an upper case such as and private being lower then mix-in the type:
var (
string sPhone
int nAge
)
1
01 Jun 2015 17:51
u/irememberdigg
in v/programming
I'm a big "C Style" fan, which I would describe as exactly what you have posted. It took me a very long time to get used to the "JS" style of
But its growing on me... Now personally I much prefer variables in a camel case style with a description of the type so instead of
it would be
However that makes little sense in a loosely typed language which is why I am now starting to lean towards the GoLang approach of public variables starting with an upper case such as and private being lower then mix-in the type: