Good IDEs have multiple ways of showing you this info, and many languages have named parameters that fix this. Also, just putting a comment on them is not a crime, it just won't update when you change the function but then your IDE can often only do so much at call sites, so you often need to update the calls (and the comments) manually. I'm sure LLM agents can change both as well.
Or, in JavaScript like these examples were, yeah, just pass in an object. Passing in an object should be standard in JS when you have more than like 2 params anyway because it solves several issues with parameter identification, optional parsms, method overloading, and so on. And JS passes everything by reference so you aren't losing performance.


When I'm feeling like not drinking, I usually go for ginger ale or ginger beer, but they're quite sugary. Cutting them with water or a lot of ice can help. Juices universally are pretty sugary too so cutting with them is delicious but not really healthier.
My other go to is soda water with bitters or a small splash of bitter liquor. Bitters are high alcohol but you only get a few drops at a time which is comparable to "0 proof" drinks which can have some trace amounts of alcohol still. Many bars have a variety of bitters and aperitifs so its a bit like having an herbal tonic soda jerk. A squirt of lime or other citrus, or a few syrupy cherries, will also add to such a mocktail.
To be fair, beer and liquor are poisons, and they have tons of calories from unfermented sugars and the alcohol breaking down into more carbs in your body (hence beer guts). If your goal was to lose weight, stick to water. But if it's just to cut back on booze, juice and sugar soda aren't so much worse for you.