Re-using the memory. I’m not trying to get too into the weeds on this, just making the point that simple wrapper types used just for dispatch behavior are often zero-overhead, but I even so they’re often not the right API choice if there’s something simpler available. Julia’s type system is very expressive, I often get nerd-sniped into using it even when there’s a more direct way.
ssfrr
11
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| API design question: asking the user for methods and types | 14 | 1158 | March 29, 2018 | |
| Function performance when passed as an argument vs. passed in a struct | 8 | 3929 | November 4, 2017 | |
| Function in type definition | 24 | 7177 | May 19, 2017 | |
| Avoiding functions in types; performance comparison & invitation for code review | 8 | 1206 | June 10, 2018 | |
| Why specify argument types and return types | 38 | 6142 | February 24, 2021 |