Hacker News new | ask | show | jobs
by tpaksoy 3904 days ago
Having to deal with mangled symbols is pretty annoying. Is it not possible to give a directive to the Swift compiler to disable mangling? Like rust has:

    #[no_mangle]
2 comments

How would it resolve the differences in types without mangling?
No. Currently to call Swift from C (or any other language that supports C-like things) you either have to use the mangled names or write an obj-c wrapper.