Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The only situation I can imagine this causing a problem in your codebase is if you intentionally want to mix camelCase and snake_case in your codebase and these 2 meaning different things.

This is literally idiomatic Python style! Classes are TitleCase and everything else is snake_case.

I have also used a mix of camelCase and snake_case for different purposes, eg in Haskell where conventions are mixed (and I am far from an expert), I've written names like "fooBar_prev"



> This is literally idiomatic Python style! Classes are TitleCase and everything else is snake_case.

And Nim does distinguish between those.

> I've written names like "fooBar_prev"

That's disgusting.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: