#how do i make functions with optional parameters without overloading
15 messages · Page 1 of 1 (latest)
Hey, @indigo crow!
Please remember to /close this post once your question has been answered!
You don't
is it not poss
no
Atleast not if you are using language level parameters
You can also pass a map of key-value pairs and use map.getOrDefault()
Can also use a builder pattern
https://mccue.dev/pages/2-8-22-options-for-options
Great blog post about this topic
Not quite exactly what you're looking for but in the same area