Why exactly is everything an expression in @rustlang ? Please show me a case where I'd use `continue`, or `break` in the context of an *expression*.
-
-
In general though, languages tend to choose to make things either all expressions, or all statements. We’re very close to, but not quite, everything as an expression. I’d flip the question around, what makes having more statements a benefit?
-
Languages do this for consistency reasons; the more consistent you can get things, the better. Forcing these things to be statements would only make them usable in less places, or more awkward to use
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.