News for hackers. Stuff that matters.
Re:Zig-Error-Patterns by yahoozoo on Wednesday August 06, 2025 @02:49PM (#44816025)
Cool stuff, but the mixed casings I see here (and have in other Zig code) puts me on edge (not literally but yeah). You’ve got `addSystemCommand` then a variable named `debug_step` which has a call `dependOn`. That said, looks like most of the stdlib stuff is camel case so the snake case variables are just the authors preference.
Re:Zig-Error-Patterns by schroffl on Wednesday August 06, 2025 @03:07PM (#44816278)
The language reference has a section about naming identifiers https://ziglang.org/documentation/0.14.1/#Names
Re:Zig-Error-Patterns by dnautics on Wednesday August 06, 2025 @04:23PM (#44817308)
there was a proposal to rid of #3, but I guess that's not going to happen.