|
|
|
|
|
by etyp
177 days ago
|
|
This is one of those natural consequences of "everything is an expression" languages that I really like! I like more explicit syntax like Zig's labelled blocks, but any of these are cool. Try this out, you can actually (technically) assign a variable to `continue` like: let x = continue; Funnily enough, one of the few things that are definitely always a statement are `let` statements! Except, you also have `let` expressions, which are technically different, so I guess that's not really a difference at all. |
|