Changes between Version 1 and Version 2 of ObjectiveC/TypeSafeMessaging
- Sep 7, 2010 12:45:05 AM (5 years ago)
v1 v2 20 20 }}} 21 21 22 In practice, the Selector family might be an associated data type of a typeclass of objects, with sendas a method that dispatches those selectors down to the appropriate FFI calls. 22 In practice, the as a method that dispatches those selectors down to the appropriate FFI calls. 23 23 24 24 The question here is what to do about selector overlaps across classes. If we can find a nice solution for subclassing we might not need to think about overlap between methods on superclasses. Maybe wrapping the whole thing in a class would allow us to deal with the overlap, and the methods would also allow us to use camel case on the method names. As all class objects themselves will probably just be newtypes around pointers, maybe GeneralizedNewtypeDeriving can help us avoid too much boilerplate too?