[TIMOB-24566] Hyperloop: iOS - Support variadic methods
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | Medium |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Hyperloop, iOS |
| Labels | n/a |
| Reporter | Hans Knöchel |
| Assignee | Jan Vennemann |
| Created | 2017-04-08T08:53:05.000+0000 |
| Updated | 2018-03-21T09:58:49.000+0000 |
Description
iOS supports variadic methods that accept a variable number of parameters. Examples are especially methods accepting format specifiers like:
-
\[NSString stringWithFormat:@"%@, %@, %@", propertyA, propertyB, propertyC]
- NSLog(@"%d @ld", propertyD, propertyE)
Example Hyperloop implementations could be pretty straight forward:
NSString.stringWithFormat("%@, %@, %@", propertyA, propertyB, propertyC);
No comments