microzig icon indicating copy to clipboard operation
microzig copied to clipboard

Many function names do not follow Zig convention.

Open Uthedris opened this issue 8 months ago • 2 comments

Per Zig documentation:

If x is callable [a function], and x's return type is type, then x should be TitleCase. If x is otherwise callable, then x should be camelCase.

Uthedris avatar Apr 07 '25 11:04 Uthedris

Microzig uses snake case for normal function names and TitleCase for functions which return a type.

tact1m4n3 avatar Apr 09 '25 04:04 tact1m4n3

Link to the relevant docs: https://ziglang.org/documentation/master/#Names

I am personally in favour of following their convention, but it's not a hill I'll die on.

Grazfather avatar Apr 09 '25 17:04 Grazfather