3 ms·
Mixins have their place, but perhaps we are at the point where we need general advice (like the class "Prefer composition over inheritance") for mixins ("Prefer
by digisth 10y ago
Mixins have their place, but perhaps we are at the point where we need general advice (like the class "Prefer composition over inheritance") for mixins ("Prefer traits over mixins"), especially as there's a good analog between the two. Matthijs Hollemans wrote an article which argues for that as well:
http://matthijshollemans.com/2015/07/22/mixins-and-traits-in-swift-2/ http://matthijshollemans.com/2015/07/22/mixins-and-traits-in...