Again late, but let shamelessly point out my post about how you should not see variables as boxes to complement what Leandro is saying.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| How to define a function such that its arguments can mutate? | 16 | 6566 | August 13, 2021 | |
| Correct way of modyfing argument | 6 | 846 | February 16, 2018 | |
| An Issue in Defining a Mutating Function | 6 | 774 | March 12, 2023 | |
| Are the scope rules applied correctly by Julia? | 17 | 568 | March 29, 2021 | |
| Scope of variable - is this expected? | 2 | 583 | April 15, 2017 |