# A question about redefining a function in Julia

**URL:** <https://discourse.julialang.org/t/a-question-about-redefining-a-function-in-julia/133579>\
**Category:** New to Julia\
**Tags:** question, functions\
**Created:** [October 31, 2025, 3:15pm UTC](https://discourse.julialang.org/t/a-question-about-redefining-a-function-in-julia/133579 "2025-10-31T15:15:16Z")\
**Posts on this page:** 1\
**Showing post:** 38

<div class="post-metadata">

**Author:** ![eldee](https://avatars.discourse-cdn.com/v4/letter/e/b5a626/32.png) [@eldee](https://discourse.julialang.org/u/eldee)\
**Post date:** [November 3, 2025, 5:51pm UTC](https://discourse.julialang.org/t/a-question-about-redefining-a-function-in-julia/133579/38 "2025-11-03T17:51:42Z")

</div>

> [@WalterMadelim](#):
>
> When we handle our functions in practice, it would be perfect if we define and call standard functions (at the definition, all names are read from the arg line; at the caller’s place, we specify all arguments). But this style in practice would soon become very cumbersome. Imagine if you have a function with a long arg list, and that function still needs to be wrapped within a “shell” function. So that “shell” function also has to define a long list of args.

There already have been a number of topics on how to organise many method arguments, such as

> [@Good coding practices: How to cluster many variables in function argument](https://discourse.julialang.org/t/good-coding-practices-how-to-cluster-many-variables-in-function-argument/92855):
>
> Hello there, I’m still fairly new to julia, but I guess it is anyway a general programming question. In my code there are several physical parameters, e.g. mass,speed,height,… as well as numerical parameters for different numerical methods used subsequently, e.g. n1,n2,n3,…, and m1,m2,m3,… (In reality I give them more useful names). Now I wrote a function which does the main calculation function fun\_unclear(mass,speed,height,n1,n2,n3,m1,m2,m3) end However, as there are so many arguments (ar…

and we are starting to get off-topic here, but in general you would just group your arguments into (one or multiple) structs, (named) tuples, …

> [@WalterMadelim](#):
>
> As you can see, the standard grammar in `arg.jl` is very cumbersome.

This example is also just very artificial. You destructure your generator to 19 variables, which you then later combine again. Instead you could have just defined (e.g.) `vec = Tuple(rand(1000) for _ = 1:19)` and `function loop_over_global(vec) ... end`.

---

_[View the full topic](https://discourse.julialang.org/t/a-question-about-redefining-a-function-in-julia/133579)._
