I like splatfields but I think it's hard to make work with type parameters (which is normally a deal breaker for me)
On Thursday, September 15, 2016, 'Greg Plowman' via julia-users < julia-users@googlegroups.com> wrote: > > Another variation on Chris's @commonfields and Tom's @base & @extend > <javascript:_e(%7B%7D,'cvml','%5Cx26@extend');>: > > This is somewhere between example 2 and 3, > Avoids copy and paste of example 2 > Avoids delegating to Foo of example 3 > > abstract AbstractFoo > > type Foo <: AbstractFoo > bar > baz > end > > type Foobar <: AbstractFoo > @splatfields Foo > barbaz > bazbaz > end > > Also allows for "multiple" composition/inheritance. > > >