2 ms·
While I generally agree with the sentiment it's worth mentioning that Rust preceded Swift and any similarities are the result of the Swift designers being influ
by jpgvm 11y ago
While I generally agree with the sentiment it's worth mentioning that Rust preceded Swift and any similarities are the result of the Swift designers being influenced by Rust, not the other way around.
Rust also has the equivalent of ARC in the form of the Rc and Arc containers, Rc does reference counting without atomics, Arc with atomics (for when you need to do reference counting with thread safety).
- burntsushi 11y agoThe feature in question (`if let`) was added pretty recently. The RFC even mentions Swift! ;-) https://github.com/rust-lang/rfcs/blob/master/text/0160-if-let.md#detailed-design https://github.com/rust-lang/rfcs/blob/master/text/0160-if-l...
- sinistersnare 11y agoYup, we hard stole if-let from Swift ;). We even made it better!