# Does everyone's code highlight on Discourse look so bland?

**URL:** <https://discourse.julialang.org/t/does-everyones-code-highlight-on-discourse-look-so-bland/93803>\
**Category:** Meta Discussion\
**Created:** [January 31, 2023, 2:56am UTC](https://discourse.julialang.org/t/does-everyones-code-highlight-on-discourse-look-so-bland/93803 "2023-01-31T02:56:12Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![mkoculak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkoculak/32/28310_2.png) [@mkoculak](https://discourse.julialang.org/u/mkoculak)\
**Post date:** [January 31, 2023, 3:48am UTC](https://discourse.julialang.org/t/does-everyones-code-highlight-on-discourse-look-so-bland/93803/3 "2023-01-31T03:48:30Z")

</div>

Sure, here is the post

> [@Automatic resizing of struct internal array when value changes?](https://discourse.julialang.org/t/automatic-resizing-of-struct-internal-array-when-value-changes/93790/4):
>
> Both getproperty and setproperty! are kind of fiddly to get right, since they inherently rely on constant propagation of the accessed field for their type stability. You can write what you want to achieve like this: function Base.setproperty!(ts::TheStruct, s::Symbol, v) if s === :N setfield!(ts, s, v) arr = getfield(ts, :x) resize!(arr, v) else setfield!(ts, s, v) end end There’s probably a race condition here in multithreaded code. If I may ask,…

---

_[View the full topic](https://discourse.julialang.org/t/does-everyones-code-highlight-on-discourse-look-so-bland/93803)._
