On 2020-05-19 09:53:01 +0100, Rhodri James wrote: > On 18/05/2020 22:07, Eli the Bearded wrote: > > camelCase -> noCamelCase > > snake_case -> no_snake_case > > > > One of those is easier to "grep" for than the other. > > Eh. A changed case in the one, an extra character in the other; that's > pretty much the same difficulty really. I certainly don't find it "hard" to > grep for _snake_case.
I think you misunderstood his argument. He is saying that by searching for /snake_case/ you will find both "snake_case" and "no_snake_case". But /camelCase/ won't match "noCamelCase" - you have to search for /[cC]amelCase/ instead. I'm not sure if I'm convinced by that. I prefer snake_case simply for aesthetic reasons. My native language is German, so I should be used to gratuitous capitalisation from early childhood - but I still find camelCase ugly. hp -- _ | Peter J. Holzer | Story must make more sense than reality. |_|_) | | | | | h...@hjp.at | -- Charles Stross, "Creative writing __/ | http://www.hjp.at/ | challenge!"
signature.asc
Description: PGP signature
-- https://mail.python.org/mailman/listinfo/python-list