Y
Hacker News
new
|
ask
|
show
|
jobs
by
Redoubts
1645 days ago
It does have c interop so you could just use libarchive. Though writing c in swift is a bit less magical.
2 comments
randomNumber7
1645 days ago
While technically true you then have to use pointers in swift and they made it hard by design to do that.
link
heavyset_go
1645 days ago
Last time I looked, Swift didn't have a stable way to export C-compatible ABIs.
link
saagarjha
1645 days ago
@_cdecl exists, although it's underscored.
link
heavyset_go
1644 days ago
I was under the impression that this feature wasn't stable, but it's been years since I've thought about it.
link