Zig NEWS

Discussion on: Writing and Releasing a game in zig

Collapse
 
gonzus profile image
Gonzalo Diethelm

Can you provide a bit more background for "the unary operator zig fmt requirement"?

Collapse
 
chapliboy profile image
Samarth Hattangady

Hey.

It's the situation where your code

const big_size = size *12.5;
Enter fullscreen mode Exit fullscreen mode

with the error

error: binary operator `*` has whitespace on one side, but not the other.
Enter fullscreen mode Exit fullscreen mode

It might be a compiler requirement, not zig fmt.
I was just saying from the perspective of how I use the autoformatter to clean up whitespace issues, but this is not considered a whitespace issue, but a bug.