| ▲ | NooneAtAll3 4 hours 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? | ||
| ▲ | ahartmetz 2 hours ago | parent | next [-] | |
setMenuVisible() 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()). | ||
| ▲ | 3 hours ago | parent | prev [-] | |
| [deleted] | ||