> Types are PascalCase
> Variables are lowercase_with_underscores
Just why? It does not seem like the same language that used to treat tabs as a compiler error. Looks like the worst of every worlds to me. Why not just stick to one style?
> Types are PascalCase
> Variables are lowercase_with_underscores
Just why? It does not seem like the same language that used to treat tabs as a compiler error. Looks like the worst of every worlds to me. Why not just stick to one style?
Edit: Looks like they are already aware of the problem. That is good news.
https://github.com/ziglang/zig/issues/1097#issuecomment-6142...
It’s quite nice to work with, and comes naturally after a short while.
I actually use this approach in my style guides for my teams writing js too.
Once you get used to it, it's quite pleasant.
In js you run into some grey areas, like function type callable variables that look weird, but still make sense when named well: click_handler() read_complete_callback()
Maybe? They say their stage2 parser accepts them now.