# A(i,j) instead of A\[i,j\] leads to weird behavior

**URL:** <https://discourse.julialang.org/t/a-i-j-instead-of-a-i-j-leads-to-weird-behavior/20196>\
**Category:** General Usage\
**Created:** [January 28, 2019, 9:53pm UTC](https://discourse.julialang.org/t/a-i-j-instead-of-a-i-j-leads-to-weird-behavior/20196 "2019-01-28T21:53:38Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![bennedich](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bennedich/32/4894_2.png) [@bennedich](https://discourse.julialang.org/u/bennedich)\
**Post date:** [January 28, 2019, 10:02pm UTC](https://discourse.julialang.org/t/a-i-j-instead-of-a-i-j-leads-to-weird-behavior/20196/3 "2019-01-28T22:02:37Z")

</div>

You’re not the only one:

> [@No error when using () for indexing inside a loop](https://discourse.julialang.org/t/no-error-when-using-for-indexing-inside-a-loop/19970):
>
> I accidentally came across this observation, when trying to create a symmetric matrix. julia\> versioninfo() Julia Version 1.1.0 Commit 80516ca202 (2019-01-21 21:24 UTC) Platform Info: OS: Linux (x86\_64-pc-linux-gnu) CPU: Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz WORD\_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-6.0.1 (ORCJIT, skylake) julia\> z = randn(5,5) 5×5 Array{Float64,2}: 1.35901 -0.507248 1.60027 1.53572 -1.51329 -0.0657509 -0.91781 0.0559653 -0.133623 1.06091 …

---

_[View the full topic](https://discourse.julialang.org/t/a-i-j-instead-of-a-i-j-leads-to-weird-behavior/20196)._
