top | item 37788400

Ask HN: Is it ok to use CamelCase naming convention in C code base?

1 points| xyheme | 2 years ago

4 comments

order

dusted|2 years ago

If you think it looks pretty, and it's your code base, then yes.

If it's an existing code base and you're not the sole owner, discuss it with the others.

gregjor|2 years ago

OK with who? No one will force you to use any particular style.

By convention C programmers usually use underscores (snake case). Conventions and idioms have some value -- other programmers can more easily read and understand code when they don't have to translate idiosyncratic style to what they're used to.

zekoyeto|2 years ago

It depends you, my choice is camel case

jjgreen|2 years ago

No, it is not.