# Type With Variable Number Of Parameters

**URL:** <https://discourse.julialang.org/t/type-with-variable-number-of-parameters/126409>\
**Category:** New to Julia\
**Created:** [February 28, 2025, 3:06am UTC](https://discourse.julialang.org/t/type-with-variable-number-of-parameters/126409 "2025-02-28T03:06:26Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![Soel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/soel/32/214997_2.png) [@Soel](https://discourse.julialang.org/u/Soel)\
**Post date:** [March 9, 2025, 9:23am UTC](https://discourse.julialang.org/t/type-with-variable-number-of-parameters/126409/21 "2025-03-09T09:23:53Z")

</div>

…I had another question… let me ask it here.  
For types I do create I usually define a `Base.show(io::IO, ::MIME"text/plain", mt::MyType)` method… But for some outputs it shows the full internal `struct`… I want to refine it properly, have more control on the `Base.show`… Some hints?  
…  
read the `Base.show` help… looks like I should define the `Base.show(io::IO,mt::MyType)` + the 3-args `Base.show(io::IO,::MIME"text/plain",::MyType)`…

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [March 9, 2025, 12:25pm UTC](https://discourse.julialang.org/t/type-with-variable-number-of-parameters/126409/22 "2025-03-09T12:25:03Z")

</div>

If you leave out the mime type, that is a default for all mime types, cf the 2-argument version

> **[I/O and Network · The Julia Language](https://docs.julialang.org/en/v1/base/io-network/#Base.show-Tuple%7BIO,%20Any%7D)**
>
> Documentation for The Julia Language.

and the 3-arg one you implemented

> **[I/O and Network · The Julia Language](https://docs.julialang.org/en/v1/base/io-network/#Base.show-Tuple%7BIO,%20Any,%20Any%7D)**
>
> Documentation for The Julia Language.

---

<div class="post-metadata">

**Author:** ![Soel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/soel/32/214997_2.png) [@Soel](https://discourse.julialang.org/u/Soel)\
**Post date:** [March 11, 2025, 7:39am UTC](https://discourse.julialang.org/t/type-with-variable-number-of-parameters/126409/23 "2025-03-11T07:39:20Z")

</div>

> [@kellertuer](#):
>
> efault for all mime types,

kay, thanks!

[Previous page](https://discourse.julialang.org/t/type-with-variable-number-of-parameters/126409.md?page=1)
