Preferred declaration style for generic types with constraints
Swift Forums
Preferred declaration style for generic types with constraints
Is there a preferred style for declarations with type constraints, specifically when choosing between the following styles for MyClass1 and MyClass2 as in the following example? If yes, is there a technical reason for it? It got me thinking because I prefer the latter and incidentally noticed that Xcode does not handle it well (note the missing MyClass2 in the document structure dropdown, for which I filed FB24626654): class BaseClass {} protocol BaseProtocol {} protocol P1<T1, T2> { a...
0 comments
No comments yet.