News for hackers. Stuff that matters.
Re:Open source is democratizing video game development by chii on Friday October 21, 2022 @12:05AM (#33284381)
only because there's no `default` case.

You could argue that having `sound` as an array, and index into that array is better, but once again, what does "better" mean here?

this code works as is, you will not get an array index out of bounds error. If this is quick and easy to write, what else could you ask for?

There are no comments on this comment yet.