Earlier quoted context omitted.
I wouldn't be surprised if Apple ends up open sourcing Swift after it cleans it up, perhaps even making it an LLVM project. I see it similarly to how they handled their own AArch64 backend -- proprietary at first, but mostly for secrecy before it was announced and then merging it with the preexisting backend after it was announced.
How much cleaning up do you expect at this point? It's already both announced and released to developers. Obviously it's not 100% finished, but if they intended to open-source it, I wouldn't expect that announcement to come after publicly releasing it.
Swift – observations from Rust’s original designer
21–30 of 88 posts
Re: Swift – observations from Rust’s original designer
#22Re: Swift – observations from Rust’s original designer
#23Earlier quoted context omitted.
How much cleaning up do you expect at this point? It's already both announced and released to developers. Obviously it's not 100% finished, but if they intended to open-source it, I wouldn't expect that announcement to come after publicly releasing it.
They did announce they would not guarantee source compatibility until after the release date. So the language will likely change a bit still.
Re: Swift – observations from Rust’s original designer
#24Re: Swift – observations from Rust’s original designer
#25I hope ideas will flow the other way too, and Rust adopts some sugar from Swift. I find `if let concrete = optional` sooo much nicer than `match optional { (concrete) => , _ => {} }`. Rust has solid semantics that covers more than Swift. OTOH Apple has put their UX magic into the language's syntax. Some syntax shortcuts, like `.ShortEnumWhenInContext` are delightful. The two combined will be the perfect language ;)
Re: Swift – observations from Rust’s original designer
#26Does he knows something of Obj-C? Because a lot what he says coming from elsewhere was already well known in Obj-C, like named parameters, "protocols", etc. Which he barely mentions. I think in the light of Obj-C, the newer C# would be less mentioned.
Re: Swift – observations from Rust’s original designer
#27Earlier quoted context omitted.
Why is that comment getting voted down? Everything it states is true. Rust isn't stable. It really hasn't seen any serious use. Even the Rust home page itself currently states, "Rust is a work-in-progress and may do anything it likes up to and including eating your laundry."
It's still in development, but it's a far cry from vaporware, and it's already being used in production at at least one company.
Re: Swift – observations from Rust’s original designer
#28What 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.)
Re: Swift – observations from Rust’s original designer
#29I hope ideas will flow the other way too, and Rust adopts some sugar from Swift. I find `if let concrete = optional` sooo much nicer than `match optional { (concrete) => , _ => {} }`. Rust has solid semantics that covers more than Swift. OTOH Apple has put their UX magic into the language's syntax. Some syntax shortcuts, like `.ShortEnumWhenInContext` are delightful. The two combined will be the perfect language ;)
if concrete = optional
call concreteRe: Swift – observations from Rust’s original designer
#30What 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.)
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.