Ken Ferry@kongtomorrow·Jun 21, 2015@brentsimmons I think you're after "associated types". https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Generics.html#//apple_ref/doc/uid/TP40014097-CH26-ID189… Gist: https://gist.github.com/kongtomorrow/77c53e32ecf50b94f3c1…11
Andy Matuschak@andy_matuschak·Jun 21, 2015@kongtomorrow @brentsimmons That requires making a 1-to-1 relationship between each `Smashable`-adopter and each `Value`-adopter3
Ken Ferry@kongtomorrow·Jun 21, 2015@andy_matuschak @brentsimmons actually I realized that I'm not sure about intent. Updated gist. Seems like Smashable should extend value?1
Andy Matuschak@andy_matuschakReplying to @kongtomorrow@kongtomorrow @brentsimmons Don’t see why Smashable and Value would be related in the type hierarchy.6:18 PM · Jun 21, 2015·Tweetbot for Mac