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 | 262 | July 5, 2024 | |
[ANN] LightSumTypes.jl v4 | 33 | 2088 | March 26, 2025 | |
(Not) Giving up on dispatch | 23 | 1873 | August 30, 2021 | |
[ANN] ValSplit.jl: Compile away dynamic dispatch on Val-typed arguments | 3 | 1624 | March 1, 2022 | |
Is it possible to get the most fitting dispatch types? | 5 | 249 | April 26, 2023 |