This repository was archived by the owner on Feb 7, 2019. It is now read-only.
This repository was archived by the owner on Feb 7, 2019. It is now read-only.
Inheritance in terms of traits #17
Open
Description
Just as a proof of concept, could a macro be used in place of inheritance. e.g. if we had
type Int <: Integer
could we replace this as a trait
@traittype type Int <: Integer
# to be the same as (I think)
type Int
@traitdef Integer{X}
@traitimpl Integer{Int}
so that any defined types on traits could dispatch off Integer.
Perhaps this should be on SimpleTraits ?` This is "syntax that could work for base"... and then be extended to MI :).
Metadata
Metadata
Assignees
Labels
No labels