logoalt Hacker News

kibwenyesterday at 12:49 AM1 replyview on HN

I wouldn't call Rust "a big language" because of labeled break. This is a pretty standard language feature, you can do the same in C (and therefore C++), Go, Javascript, Java, C#...


Replies

atq2119yesterday at 8:27 AM

Those languages don't treat blocks as expressions, so you really can't do the same thing there. Something very similar, yes. But not the same.

show 1 reply