Swift, generics & protocols

Jay Vaughan (ibisum) ibisum at gmail.com
Tue Jan 17 14:00:45 CET 2017


> How would you do this, is there another pattern that would be better?
> /Micke


I would do it just as you have done it - with protocols and sub-classes.  What is it about this solution that you don't like?

BTW - Interesting topic!  I haven't quite gotten up to speed on Swift yet (waiting for the 3.x dust to settle), so for me it was enlightening to see your implementation ..

;
--
Jay Vaughan
ibisum at gmail.com






More information about the music-bar mailing list