4 ms·
Smalltalk became Objective-C. Objective-C has informed Swift. Long live Smalltalk.
by ChrisMarshallNY 6y ago
Smalltalk became Objective-C.
Objective-C has informed Swift.
Long live Smalltalk.
- ibiza 6y agoEach link in this lineage is tenuous. Objective-C took Smalltalk's call syntax, its class def (in a sense?), and its late fn binding, but little else. It certainly didn't take what made Smalltalk, Smalltalk. Full disclosure: I really like both languages. I struggle to find the mapping between Objective-C and Swift, other than "same company" and must preserve backwards compatibility. Smalltalk became Squeak. Long live Squeak. :)
- ChrisMarshallNY 6y agoI think that Swift got a lot of its "philosophical" structure from ObjC. After Swift was released, I understood why ObjC 2.0 was written the way that it was. It was modified to allow the standard libraries and SDKs to transition to Swift. I remember coming from C++ (CodeWarrior/PowerPlant), and encountering ObjC, and going "Whiskey Tango Foxtrot?". After a while, though, I got used to it, and actually started to enjoy ObjC, in a way that C++ never got me. I enjoy Swift, even more. After years of writing code in languages I didn't really like (C++/PHP), Swift is something that I actually enjoy. I suspect that Smalltalk, and its affect, are responsible for the "enjoyment" factor of Swift. I consider most of the lineage to be "in spirit," more than "in detail." It's quite easy to shoot holes, if we get particular.
- superdisk 6y agoSwift basically stripped out what was left of Smalltalk from Objective C.
- wool_gather 6y agoIf Swift didn't have a non-negotiable -- because of its deployment on Apple platforms -- requirement for strong interop with ObjC, I firmly believe it would have been even more like Rust than it already is. The flexibility that's enabled directly by ObjC's simplicity is just not a goal for Swift.
- ChrisMarshallNY 6y agoI've never encountered a language as flexible as Swift.