#declare multiple variables on the same line

1 messages · Page 1 of 1 (latest)

icy bone
#

Is there a way to declare multiple variables on the same line in zig ?

rapid scarab
#

i mean, you can do:

const x, const y = .{ 10, 20 };
#

not sure what you're trying to achieve