logoalt Hacker News

mlinksvatoday at 12:49 AM2 repliesview on HN

https://x.com/awesomekling/status/1822236888188498031 https://x.com/awesomekling/status/1822239138038382684 "In the end it came down to Swift vs Rust, and Swift is strictly better in OO support and C++ interop."


Replies

ckchengtoday at 4:16 AM

> In the end it came down to Swift vs Rust, and Swift is strictly better in OO support and C++ interop

Why not D?

show 1 reply
refulgentistoday at 12:57 AM

> Swift is strictly better in OO support and C++ interop

Fascinating.

They've shown the idea it is better on C++ interop is wrong.

I don't know enough to say Rust has same OO support as Swift, but I'm pretty sure it does. (my guess as a former Swift dev: "protocol oriented programming" was a buzzy thing that would have sounded novel, but amounted to "use traits" in rust parlance)

EDIT: Happy to hear a reply re: why downvotes, -3 is a little wild, given current replies don't raise any issues.

show 2 replies