ScalaPattern之Stackable Modification Trait Pattern
原文出处:http://www.artima.com/scalazine/articles/stackable_trait_pattern.htmlOnewaytouseScala'straitsisasstackablemodifications.Inthispattern,atrait(orclass)canplayoneofthreeroles:thebase,acore,orastacka