2 ms·
From what I've found maintaining https://github.com/Planimeter/game-engine-2d https://github.com/Planimeter/game-engine-2d is that you should be explicitly chec
by andrewmcwatters 4y ago
From what I've found maintaining https://github.com/Planimeter/game-engine-2d https://github.com/Planimeter/game-engine-2d is that you should be explicitly checking for nil, separately from checking for false-evaluating values.
We found that this had the added benefit of semantically checking for something that did not exist, versus some contextual "false" value.
I suspect this is a good practice in other languages as well.