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