docs: update stance on line length

This commit is contained in:
Isaac Freund 2021-01-02 12:07:21 +01:00
parent 30ba87fa15
commit 9d76709713
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -35,11 +35,11 @@ For further details regarding commit style and git history see
Please follow the Please follow the
[Zig Style Guide](https://ziglang.org/documentation/master/#Style-Guide) [Zig Style Guide](https://ziglang.org/documentation/master/#Style-Guide)
and run `zig fmt` before every commit. With regards to line length, consider 100 and run `zig fmt` before every commit. With regards to line length, keep it
characters to be a hard upper limit and 80 or less to be the goal. Note that under 100 columns in general but prioritize readability over adhering to a
inserting a trailing comma after the last parameter in function calls, struct strict limit. Note that inserting a trailing comma after the last parameter in
declarations, etc. will cause `zig fmt` to wrap those lines. I highly recommend function calls, struct declarations, etc. will cause `zig fmt` to wrap those
configuring your editor to run `zig fmt` on write. lines. I highly recommend configuring your editor to run `zig fmt` on write.
On a higher level, prioritize simplicity of code over nearly everything else. On a higher level, prioritize simplicity of code over nearly everything else.
Performance is only a valid reason for code complexity if there are profiling Performance is only a valid reason for code complexity if there are profiling