# Is println type instable?

**URL:** <https://discourse.julialang.org/t/is-println-type-instable/105818>\
**Category:** General Usage\
**Created:** [November 5, 2023, 12:09pm UTC](https://discourse.julialang.org/t/is-println-type-instable/105818 "2023-11-05T12:09:45Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Post date:** [November 5, 2023, 12:16pm UTC](https://discourse.julialang.org/t/is-println-type-instable/105818/2 "2023-11-05T12:16:32Z")

</div>

I suppose that’s by design, because specializing every print call for the types of its arguments seems like a waste. Not sure though.

EDIT: the `Vararg` `print` method, which `println` is based on, does not specialize for the types of its arguments. One related thread: [Would it be interesting to optimize print(io, xs...) to be type stable?](https://discourse.julialang.org/t/would-it-be-interesting-to-optimize-print-io-xs-to-be-type-stable/94816)

For those who aren’t aware: [_Be aware of when Julia avoids specializing_](https://docs.julialang.org/en/v1/manual/performance-tips/#Be-aware-of-when-Julia-avoids-specializing)

---

_[View the full topic](https://discourse.julialang.org/t/is-println-type-instable/105818)._
