Because abstract types can be extended with new subtypes, while unions cannot:
tisztamo
13
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Union splitting vs C++ | 22 | 4419 | July 9, 2021 | |
| [ANN]: WrappedUnions.jl: Wrap a Union for enhanced type-stability | 11 | 826 | March 24, 2026 | |
| Performance benefits of multiple dispatch | 20 | 2673 | December 19, 2021 | |
| Performance drawback with subtyping | 34 | 3495 | August 26, 2021 | |
| Slow code with Union and Box | 17 | 399 | March 6, 2024 |