# Julia fn clearer than C++/Fortran (examples sought)

**URL:** <https://discourse.julialang.org/t/julia-fn-clearer-than-c-fortran-examples-sought/50739>\
**Category:** General Usage\
**Created:** [November 25, 2020, 10:35am UTC](https://discourse.julialang.org/t/julia-fn-clearer-than-c-fortran-examples-sought/50739 "2020-11-25T10:35:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [November 25, 2020, 11:27am UTC](https://discourse.julialang.org/t/julia-fn-clearer-than-c-fortran-examples-sought/50739/2 "2020-11-25T11:27:25Z")

</div>

> [@Julia's assignment behavior differs from Fortran?](https://discourse.julialang.org/t/julias-assignment-behavior-differs-from-fortran/50389/50):
>
> I will post an example of the use of immutable types to compare with a Fortran routine. I do this to learn things myself, so why not share… I think this is an example on how the Julia syntax is nice when we get used to it: Problem: Given the positions of N particles in 3D, update the positions of a subset of size M of these particles defined in a list. Using Julia, I will first define an immutable struct to contain the coordinates, and a constructor that updated the particles with the transfor…

Below that post of mine, Chris Elrod posted another version of the same thing which is more elegant (in both languages), although the Fortran implementation in his case is directly thought to be interfaced with Julia, so some syntax is not natural for Fortran in general.

---

_[View the full topic](https://discourse.julialang.org/t/julia-fn-clearer-than-c-fortran-examples-sought/50739)._
