4 ms·
Julia solves this by using interfaces (functions defined over one or more custom types that abstract over concrete information). Just overload those on your ty
by amkkma 6y ago
Julia solves this by using interfaces (functions defined over one or more custom types that abstract over concrete information).
Just overload those on your type, and voila it works with the CAS.
- centimeter 6y agoI'm skeptical that duck typing can really be considered a full "solution", but at the very least it seems like a good bet.
- reikonomusha 6y agoWhat if one type admits several different interfaces? Like, an Integer type admits several equally valid group structures which may be written as an interface.