HuoLanguage / huo

interpreted language written in C
MIT License
212 stars 21 forks source link

Coding conventions / style #37

Open TheLoneWolfling opened 8 years ago

TheLoneWolfling commented 8 years ago

Just wondering what your preferred formatting is. I've been attempting to imitate what I've seen so far, but I know there are a few things that I do differently (or tend to do differently.)

incrediblesound commented 8 years ago

That's a good question. I'm primarily a JS programmer and my C is self-taught so there are probably some best practices I'm missing out on. On the other hand I think that a lot of C code I see on github is really unreadable and I don't want to imitate the really obscure styles I see. Do you have any references for C style guides that you like?

TheLoneWolfling commented 8 years ago

Not really, unfortunately.