3 ms·
> toggleMenu(true); That’s clear enough. the meaning is obvious so... it does toggle the menu? and toggleMenu(false) doesn't toggle it and keeps it as it is?
by NooneAtAll3 5mo ago
> toggleMenu(true); That’s clear enough. the meaning is obvious
so... it does toggle the menu? and toggleMenu(false) doesn't toggle it and keeps it as it is?
or is it toggle extended menu vs toggle basic menu?
- deleted 5mo ago[deleted]
- ahartmetz 5mo agosetMenuVisible() If it is unclear what your one-argument function does, the name is the problem and you messed up, not the language. For multi-argument functions, you can have either enums or named arguments or, if you really have to, some kind of builder pattern thing: eatCheese(cheese().fromGoatMilk().withVanillaFlavor()).