# What's the aliasing story in Julia

**URL:** <https://discourse.julialang.org/t/whats-the-aliasing-story-in-julia/102564>\
**Category:** General Usage\
**Tags:** question, aliasing\
**Created:** [August 7, 2023, 1:43pm UTC](https://discourse.julialang.org/t/whats-the-aliasing-story-in-julia/102564 "2023-08-07T13:43:33Z")\
**Posts on this page:** 1\
**Showing post:** 22

<div class="post-metadata">

**Author:** ![adienes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/adienes/32/37459_2.png) [@adienes](https://discourse.julialang.org/u/adienes)\
**Post date:** [August 9, 2023, 3:31pm UTC](https://discourse.julialang.org/t/whats-the-aliasing-story-in-julia/102564/22 "2023-08-09T15:31:43Z")

</div>

> [@mikmoore](#):
>
> One could write `x .= sum.(eachrow(y))` to sum each row of y and store the result to `x`.

well, not if `x` and `y` alias you can’t!

related docs pr: [[docs] add performance tip concerning overly-fused broadcast loops by adienes · Pull Request #49228 · JuliaLang/julia · GitHub](https://github.com/JuliaLang/julia/pull/49228) and previous discussion [Unexpected broadcasting behavior involving eachrow()](https://discourse.julialang.org/t/unexpected-broadcasting-behavior-involving-eachrow/96781)

---

_[View the full topic](https://discourse.julialang.org/t/whats-the-aliasing-story-in-julia/102564)._
