Yes this is very common if one wants to extend a function to work with one’s own type. This avoids shadowing the function, we just had this discussion yesterday:
nilshg
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to detect/avoid type piracy? | 77 | 2579 | June 14, 2024 | |
| Julia adoption: Method confusion | 12 | 959 | May 8, 2025 | |
| Redefining methods in Base | 7 | 747 | October 26, 2019 | |
| Extending the standard library | 4 | 2321 | December 9, 2018 | |
| Even more clarification on Type piracy | 24 | 3912 | January 6, 2022 |