In this discussion How to make a vector of parametric composite types? - #11 by Olivier_Merchiers it also appeared from benchmarks that empty instances were faster than using types.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Should I dispatch on singleton types or their instances? | 6 | 1348 | September 1, 2019 | |
| Naming of singleton types and their instance | 10 | 2427 | January 17, 2018 | |
| Best practices for type dispatch? | 3 | 1185 | April 11, 2017 | |
| Weird Tuple types that seem like they should be disallowed? | 11 | 733 | March 14, 2021 | |
| Abstract type versus singleton struct | 6 | 877 | March 25, 2020 |