Hacker News new | ask | show | jobs
by scottostler 3473 days ago
I use Swift professionally and have written some Rust for fun, and like both languages a lot. I find Swift to be faster to write, not least because it's easier to manually prevent retain cycles than to write borrow-checker approved code. It's also much easier to leak memory and write unsafe threaded code in Swift, so there's a trade-off there.

I'm sure if I wrote more Rust I'd get faster at it, though I do think it has a fundamentally more complicated programming model.

1 comments

Fair. I've yet to write any code for an Apple device, but Swift seems like a nice language. Albeit I'm a massive Rust fanboy.