# Re the blog post: PSA: Thread-local state is no longer recommended

**URL:** <https://discourse.julialang.org/t/re-the-blog-post-psa-thread-local-state-is-no-longer-recommended/101303>\
**Category:** Internals & Design\
**Created:** [July 7, 2023, 9:25am UTC](https://discourse.julialang.org/t/re-the-blog-post-psa-thread-local-state-is-no-longer-recommended/101303 "2023-07-07T09:25:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [July 7, 2023, 9:33am UTC](https://discourse.julialang.org/t/re-the-blog-post-psa-thread-local-state-is-no-longer-recommended/101303/2 "2023-07-07T09:33:18Z")

</div>

Isn’t that pretty much the same pattern as [the one proposed in the other thread](https://discourse.julialang.org/t/psa-thread-local-state-is-no-longer-recommended-common-misconceptions-about-threadid-and-nthreads/101274/8) (the latter just being more explicit/verbose)?

> [@wherrera](#):
>
> `states = [some_initial_value for _ in eachindex(x)] # <-- changed`

`x` isn’t defined here?

---

_[View the full topic](https://discourse.julialang.org/t/re-the-blog-post-psa-thread-local-state-is-no-longer-recommended/101303)._
