Julia Programming Language
Idiom for related types?
General Usage
aryavorskiy
May 24, 2024, 10:37pm
5
Actually, not if you define this constructor for the abstract type
Leg{<:Cat}(A) = CatLeg(A)
3 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Is there a Julian way to combine types generically or a design pattern that achieves the goal?
General Usage
question
,
design-pattern
16
3148
May 8, 2017
Why is it impossible to subtype a struct?
General Usage
29
11046
January 23, 2019
Abstract constructor
General Usage
1
790
October 10, 2019
Can I “couple” two types?
New to Julia
question
10
1914
December 1, 2016
Best way to make has_many/belongs_to relation for structs?
General Usage
question
3
981
December 23, 2017