You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where the {} are forced, but the () around the condition can be omitted is easier to read and write than the c-like
if (condition) expr
syntax.
I think this change would benefit zig because IMHO omitting the {} almost always makes the code more unreadable, the structure given by the {} helps really to see where the expression ends. Furthermore, when the {} are forced, the () doesn't really help here, since the condition is already well separated by the if and the {.
The text was updated successfully, but these errors were encountered:
In my opinion, the rust-like syntax
where the
{}
are forced, but the()
around the condition can be omitted is easier to read and write than the c-likesyntax.
I think this change would benefit zig because IMHO omitting the
{}
almost always makes the code more unreadable, the structure given by the{}
helps really to see where the expression ends. Furthermore, when the{}
are forced, the()
doesn't really help here, since the condition is already well separated by theif
and the{
.The text was updated successfully, but these errors were encountered: