# Name this method extension technique, piracy evasion

**URL:** https://discourse.julialang.org/t/name-this-method-extension-technique-piracy-evasion/101099
**Category:** General Usage
**Tags:** method-invalidation, methods
**Created:** [July 2, 2023, 11:52pm UTC](https://discourse.julialang.org/t/name-this-method-extension-technique-piracy-evasion/101099 "2023-07-02T23:52:06Z")
**Posts on this page:** 2
**Page:** 2

<div class="post-metadata">

### Author: ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)
#### Post date: [July 3, 2023, 9:43pm UTC](https://discourse.julialang.org/t/name-this-method-extension-technique-piracy-evasion/101099/21 "2023-07-03T21:43:25Z")

</div>

> [@Sukera](#):
>
> I think it’s generally better to try to upstream such additions to an API, instead of wrapping & punning on the name.

Note that I modified the example to remove the `export`. I definitely do not mean to do this in lieu of upstreaming the example. Some may argue this functionality actually belongs to StructIO.jl though. I actually thought that someone has sumbitted a pull request to write tuples, but I cannot seem to find it at the moment.

Let’s use this scenario though. Let’s say I submit this pull request to `JuliaLang/julia`. What do I do in the meantime? If I use a different name for the method, then I have to do a search and replace operation once upstream incoprorates and releases it, which could be months or years from now.

---

<div class="post-metadata">

### Author: ![Sukera](https://avatars.discourse-cdn.com/v4/letter/s/ce7236/32.png) [@Sukera](https://discourse.julialang.org/u/Sukera)
#### Post date: [July 4, 2023, 7:42am UTC](https://discourse.julialang.org/t/name-this-method-extension-technique-piracy-evasion/101099/22 "2023-07-04T07:42:40Z")

</div>

> [@mkitti](#):
>
> What do I do in the meantime? If I use a different name for the method, then I have to do a search and replace operation once upstream incoprorates and releases it, which could be months or years from now.

That really ought to be something your IDE can easily do for you, no? I’ve used that exact functionality with the LSP numerous times. That’s just regular, every day, plain software engineering.

[Previous page](https://discourse.julialang.org/t/name-this-method-extension-technique-piracy-evasion/101099.md?page=1)
