Re:Protocol-Oriented MVVM with Natasha the Robot
by bsaul on Wednesday March 16, 2016 @07:46PM
(#11301579)
interesting talk, but unfortunately it only shows an example where instead of having all in one (albeit big) place, the code for configuring a cell from a model is scattered throughout many protocols and extensions. And all without a single code reuse.
I'm pretty sure the approach shown here is interesting, but i'd hoped the example would be more convincing.
Re:Protocol-Oriented MVVM with Natasha the Robot
by earltedly on Monday March 21, 2016 @03:55PM
(#11331326)
I enjoyed the talk - thanks for doing it. There's an alternative though to the final approach of using a class template. You can actually do a typealias which fuses together multiple protocols into a single type. I've done a small example here:
I'm pretty sure the approach shown here is interesting, but i'd hoped the example would be more convincing.
https://gist.github.com/earltedly/67ab52c3c65ba22f6fa5