Closure identity in swift: unregister observing closure
问题 When rethinking my everyday programming patterns to be more swifty , there is one, that I really struggle with: observing changes . After a lot of thinking and research I have yet to find a satisfying solution . That is one, that is easy to use, leverages the full potential of swift's strong type system, is compatible with value types and allows for static dispatch. Maybe the latter one is not possible and that's the reason why my search is unsuccessful so far. If so, I would like to know why