News for hackers. Stuff that matters.
Re:Swift Proposal: Move Function by pjmlp on Thursday July 28, 2022 @12:02PM (#32266182)
The language main purpose was always to be a replacement for C, C++ and Objective-C.

It has been on Swift documentation from day one.

Re:Swift Proposal: Move Function by tambourine_man on Thursday July 28, 2022 @12:41PM (#32266780)
Officially stated goal, sure.

But read/listen to what Lattner says and you get a different take.

Re:Swift Proposal: Move Function by pjmlp on Thursday July 28, 2022 @01:04PM (#32267136)
I do and he says exactly the same thing.

>...the goal was really to build something that you could write firmware in or that you could do scripting in, that you could write mobile apps or server apps or low-level systems code, and have it be great at all of those, not just some terrible compromise.

Taken from https://oleb.net/2019/chris-lattner-swift-origins/ to save listing to the whole interview

Feel free to actually listen to the episode as well, and also read/listen the sections on how Swift is a complete Objective-C replacement without the bad C parts.

Re:Swift Proposal: Move Function by tambourine_man on Thursday July 28, 2022 @02:13PM (#32268162)
I misread your first post, sorry. Yeah, it's one heck of a goal.