Because abstract types can be extended with new subtypes, while unions cannot:
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
JET: are union incurred runtime dispatches really happening? | 10 | 251 | July 5, 2024 | |
[ANN] LightSumTypes.jl v4 | 29 | 1717 | September 10, 2024 | |
(Not) Giving up on dispatch | 23 | 1873 | August 30, 2021 | |
[ANN] ValSplit.jl: Compile away dynamic dispatch on Val-typed arguments | 3 | 1617 | March 1, 2022 | |
Is it possible to get the most fitting dispatch types? | 5 | 249 | April 26, 2023 |