3 ms·
Indeed, although some languages achieve the same by defining multiple falsy values, e.g. JS has 9 such values: https://developer.mozilla.org/en-US/docs/Glossary
by tuukkah 4y ago
Indeed, although some languages achieve the same by defining multiple falsy values, e.g. JS has 9 such values: https://developer.mozilla.org/en-US/docs/Glossary/Falsy https://developer.mozilla.org/en-US/docs/Glossary/Falsy
- lisper 4y agoYeah, but this causes its own set of problems when, for example, you are surprised that 0.0 is false but -0.0 is true. In general, punning of any kind is a Really Bad Idea when code gets complicated.