DEV Community

loading...

Discussion on: Car keys toggle it right !

Collapse
jayjeckel profile image
Jay Jeckel

Sure, but when you get down to actually designing the GUI, the mute/unmute control is going to be a single button. When that button is clicked it is going to toggle the state. Even if your library doesn't provide a toggleMute method, that is the logic that will be used in the button click handler.

Again, I agree with your overall point, not every boolean state semantically represents a toggle, but mute as it is used does represent a togglable state.

Forem Open with the Forem app