Naming positional arguments at call site

As another perspective, I mostly wrote named arguments in Python, and write keyword arguments in Julia, in the same order they are defined in the function. The benefits of writing their names are both documentation (clear which value is which argument), and reducing errors (a typo or mixup between arguments gets caught immediately). You cannot really get that with just creating and naming variables upfront.

5 Likes