As I noted in my post about gettinglibcurl working with Swift,curl_easy_setopt()is a variadic function which means that Swift will not import it. If you try to use it you get this error: error: 'curl_easy_setopt' is unavailable: Variadic function is unavailable curl_easy_setopt(handle, ...
I suspect we can make the change (I don't think it would be overly disruptive), but I'm less convinced we should make the change given that there are reasonable use cases where the type from the function signature not matching the type in the format specifier can be a problem. Changing...
Swift Feb 16, 2021 • 3 min read How to use Variadic parameters in SwiftVariadic parameters make it possible to pass zero or more values of a specific type into a function. It can be a clean alternative for methods that often work with one element, and you don’t want to create ...