Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Redoubts
· 4y ago · 0 comments
It does have c interop so you could just use libarchive. Though writing c in swift is a bit less magical.
Comments
[–]
randomNumber7
4y ago
While technically true you then have to use pointers in swift and they made it hard by design to do that.
[–]
heavyset_go
4y ago
Last time I looked, Swift didn't have a stable way to export C-compatible ABIs.
[–]
saagarjha
4y ago
@_cdecl exists, although it's underscored.
[–]
heavyset_go
4y ago
I was under the impression that this feature wasn't stable, but it's been years since I've thought about it.