Re: [swift-users] [swift-evolution] Happy new year Swift community.

2018-01-01 Thread Jonathan Hull via swift-users
Happy New Year! > On Dec 31, 2017, at 6:01 PM, Goffredo Marocchi via swift-evolution > wrote: > > Happy new year everybody :)! > > Sent from my iPhone > > On 31 Dec 2017, at 23:43, David Hart via swift-evolution >

[swift-users] Generics/Architecture in Swift

2017-02-24 Thread Jonathan Hull via swift-users
I could use some advice on how to architect things for Swift (as opposed to ObjC). This seems like the most appropriate list to ask, but let me know if there is a more appropriate place. I am updating an old library to Swift 3 (from 2), and it seemed like a good opportunity to experiment and

[swift-users] CGPathApply

2016-05-12 Thread Jonathan Hull via swift-users
I am having the darnedest time trying to figure out how to use CGPathApply with a swift function in Swift 2.2+. I tried it before in Swift 1.2 and it wasn’t possible without bridging to ObjC, but I am fairly sure that changed with Swift 2. Every search I do just comes up with people saying it

[swift-users] Memory used by enums

2016-04-05 Thread Jonathan Hull via swift-users
I had a quick question on the memory used by enums with associated values in the current implementation. If I have an enum like the following: enum MyEnum { case mostCommonlyUsed case somewhatCommon (Int,Int) case prettyRare (Int,Int,Int,Int,Int) } If this enum is going