Re:Swift – observations from Rust’s original designer
by tptacek on Monday June 02, 2014 @10:22PM
(#7837798)
What are the distinctive features of Rust that Swift has that aren't in some way derived from ObjC? (I'm sure there are some; I just don't know Rust.)
[ Parent
| on HN ]
Re:Swift – observations from Rust’s original designer
by yoklov on Monday June 02, 2014 @10:31PM
(#7837832)
Nothing unique to rust.
The biggest thing I see is that it's an imperative language with functional-style ADT's, tuples, sum types, etc.
It also looks fairly similar syntactically (all those let's).
Not sure if there are other things it has in common.
Re:Swift – observations from Rust’s original designer
by jmgrosen on Monday June 02, 2014 @10:29PM
(#7837825)
To name a few: safety enforced at compile-time without any sort of GC/ARC (probably the biggest), more precise control over the hardware (e.g. more concrete pointers), the lack of a required runtime -- basically it has much better support for low-level features while not sacrificing many high-level features.
Re:Swift – observations from Rust’s original designer
by kibwen on Monday June 02, 2014 @11:16PM
(#7837961)
I believe tptacek was asking for the intersection of features between Swift and Rust, not for features that Rust has but Swift doesn't (like compile-time memory safety without GC/ARC).
Re:Swift – observations from Rust’s original designer
by jmgrosen on Monday June 02, 2014 @11:50PM
(#7838047)
Oh, you're totally right. Sorry, my parser is buggy!
Why couldn't he have just have written "(Swift ∖ ObjC) ∩ Rust"? :)