# Julia's assignment behavior differs from Fortran?

**URL:** https://discourse.julialang.org/t/julias-assignment-behavior-differs-from-fortran/50389
**Category:** General Usage
**Tags:** fortran
**Created:** [November 18, 2020, 1:24pm UTC](https://discourse.julialang.org/t/julias-assignment-behavior-differs-from-fortran/50389 "2020-11-18T13:24:15Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [November 18, 2020, 1:27pm UTC](https://discourse.julialang.org/t/julias-assignment-behavior-differs-from-fortran/50389/2 "2020-11-18T13:27:10Z")

</div>

> [@Julia's loop scope behavior differs from Fortran?](https://discourse.julialang.org/t/julias-loop-scope-behavior-differs-from-fortran/50275/30):
>
> the entire “scope” setup of variables in Julia is a horror, plain and simple.

Please consider the possibility that it is just unfamiliar, and after a few months or years of programming, you may appreciate Julia’s scoping rules as very well-designed.

> [@Julia's loop scope behavior differs from Fortran?](https://discourse.julialang.org/t/julias-loop-scope-behavior-differs-from-fortran/50275/30):
>
> just writing a simple program with a detailed control flow leads constantly to errors and spurious results

It is hard to say more without a specific example, but you may just be fighting the language here by not writing idiomatic code. Again, just give it time.

---

_[View the full topic](https://discourse.julialang.org/t/julias-assignment-behavior-differs-from-fortran/50389)._
