the.bay.news

Revisiting 'break :blk value'

Ziggit
Revisiting 'break :blk value'
My only remaining gripe with the otherwise lovely Zig syntax is the requirement we name a block in order to ‘break’ a value out of it. Andrew himself called it awkward back in 2018. Given all of the proposals and discussion around this, I’m surprised this quirk appears here to stay. I’ve read through the Github threads on this, and I haven’t been able to understand what is preventing something like the following proposal. There has been some hesitation regarding possible confusion given the tra...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.