Checking I get the correct "official" style guide

I know Odin’s projects are personal and style can be heavily influenced by which library you are using (point in case Raylib) but I am developing educational material for Odin and would like to start on the right foot.

I found Naming and Style Convention by Karl Zylinski on the Odin wiki and was planning to use it as style guide for my program.

Is there a different one I should be using? If yes, can you point me to it? I am not trying to be dogmatic but, if anybody uses my examples, I would like not to give them bad habits :slight_smile:

2 Likes

That is the guide linked to from the Odin examples github page for contributions (bottom of page). I believe you’ve found the “official” guide.

Note it mentions that:

The example compiles with flags -vet -strict-style -vet-tabs -disallow-do -warnings-as-errors

Too bad about the “disallow-do”. I do like doing do. :upside_down_face:

2 Likes