# Suggestion for how to organize code that requires many parameters

**URL:** https://discourse.julialang.org/t/suggestion-for-how-to-organize-code-that-requires-many-parameters/125230
**Category:** General Usage
**Created:** [January 26, 2025, 2:50pm UTC](https://discourse.julialang.org/t/suggestion-for-how-to-organize-code-that-requires-many-parameters/125230 "2025-01-26T14:50:17Z")
**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: [January 26, 2025, 2:54pm UTC](https://discourse.julialang.org/t/suggestion-for-how-to-organize-code-that-requires-many-parameters/125230/2 "2025-01-26T14:54:16Z")

</div>

I would use a struct, as suggested here: [How to allow users to safely change package "constants"? - #6 by lmiq](https://discourse.julialang.org/t/how-to-allow-users-to-safely-change-package-constants/115173/6)

There are other options in that thread. There is also a Preferences.jl package, which might be what you need.

---

_[View the full topic](https://discourse.julialang.org/t/suggestion-for-how-to-organize-code-that-requires-many-parameters/125230)._
