4 ms·
but the `break`/`return` syntactic sugar inside for-loop closures will be lost.
by kzrdude 13y ago
but the `break`/`return` syntactic sugar inside for-loop closures will be lost.
- rntz 13y agoYes. You might be able to get something like it back with Rust's macro system, though. But it's probably better just to use the new syntax & iteration protocol, assuming the Rust folks come up with something reasonable.
- kibwen 13y agoTo be fair, it wasn't so much "syntactic sugar" as it was "a compiler hack that was rarely used and didn't even suffice for a large class of cases involving borrowed pointers".
- dbaupp 13y agoAnd, it is an incorrect compiler hack (https://github.com/mozilla/rust/issues/6675 https://github.com/mozilla/rust/issues/6675), but that's not saying much at the moment.