5 ms·
Don't swift and rust share a few of these things that make it "feel right"? With rust the whole ecosystem thing seems to be a lot better. Also rust has C(++) in
by thepete2 5y ago
Don't swift and rust share a few of these things that make it "feel right"? With rust the whole ecosystem thing seems to be a lot better. Also rust has C(++) interop (so you have every library you could wish for), does swift not have that?
- Redoubts 5y agoIt does have c interop so you could just use libarchive. Though writing c in swift is a bit less magical.
- heavyset_go 5y agoLast time I looked, Swift didn't have a stable way to export C-compatible ABIs.
- saagarjha 5y ago@_cdecl exists, although it's underscored.
- heavyset_go 5y agoI was under the impression that this feature wasn't stable, but it's been years since I've thought about it.
- randomNumber7 5y agoWhile technically true you then have to use pointers in swift and they made it hard by design to do that.