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 | 1318 | September 1, 2019 | |
Naming of singleton types and their instance | 10 | 2376 | January 17, 2018 | |
Best practices for type dispatch? | 3 | 1173 | April 11, 2017 | |
Weird Tuple types that seem like they should be disallowed? | 11 | 708 | March 14, 2021 | |
How does instance of a type works/interact with type parameters? | 11 | 513 | October 15, 2023 |