egordorichev / neko8

Fantasy console inspired by pico8, tic80 and liko12, written in c++
https://egordorichev.itch.io/neko8
112 stars 11 forks source link

Formatting #19

Open pi-pi3 opened 7 years ago

pi-pi3 commented 7 years ago

Different contributors and collaborators use different formatting style. I'm mainly talking about spaces and tabs. I believe @egordorichev originally used tabs, so this is a note for everyone: use tabs when developing neko8. If you use vim, you can do :set noet to write tabs instead of 4 (or 2) spaces. Here's a quote from @egordorichev about formatting.

2 spaces for tab, but use tabs!! If you can, keep your lines shorter then 42 80 chars

So if line doesn't fit, (...) [do this:]

function toLongFunctions(
arg, arg2
)
body
end
pi-pi3 commented 7 years ago

Formatting was fixed in existing code, but please do follow the guidelines. They're now also in README.md.