[TYPO3-core] RFC: #9183: saveDocNew for all tables except the option is set to 0

Oliver Klee typo3-german-02 at oliverklee.de
Sat Aug 16 11:52:40 CEST 2008


Hi Steffen,

Steffen Kamper schrieb:
> the setting is in string, so i do this automatically, i don't see
> disadvantage, you do?

With !==, you're also checking that the types are equal as well. If you
only want to check that the values are equal, you can communicate your
intent more clearly if you use != instead of !==. And clearly
communicating the intent of the code makes reading and modifying
(without breaking anything) a lot easier. :-)

So +1 on reading if you change !== to !=.


Oliver


More information about the TYPO3-team-core mailing list