Tom, the coarseness encountered when trying splatfields with type 
parameters: is it endemic and likely to persist or does this grow better in 
v0.6+?

On Thursday, September 15, 2016 at 11:20:35 PM UTC-4, Tom Breloff wrote:
>
> 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...@googlegroups.com <javascript:>> wrote:
>
>>
>> Another variation on Chris's @commonfields and Tom's @base & @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.
>>
>>  
>>
>

Reply via email to