launchdarkly / swift-eventsource

Server-sent events (SSE) client implementation in Swift for iOS, macOS, tvOS, and watchOS
https://launchdarkly.github.io/swift-eventsource/
Other
196 stars 36 forks source link

Restore log formatting #33

Closed gwhelanLD closed 3 years ago

gwhelanLD commented 3 years ago

By restricting arguments to specific counts as variadic argument count parameters are passed as arrays that cannot be expanded and passed to another variadic parameter.

louis-launchdarkly commented 3 years ago

Interesting limitation - actually, based on how this work, this is mostly true for programming language that supports the multi-variable args as last argument - that will come back as an array and there is no syntax to unwrap and pass along as multi-variable args once again.

https://stackoverflow.com/questions/3530771/passing-variable-arguments-to-another-function-that-accepts-a-variable-argument/46254539