DEV Community

Discussion on: Avoid C++ implicit conversions from bool

Collapse
 
bjauny profile image
Bastien JAUNY

Having worked on applying MISRA compliance to legacy code in my early years, it's now almost hardwired in my brain to do explicit conversions, just for the sake of clarity.
Of course it's overkill in some cases but I usually see my future self looking at the code and be "What's going on here?" and being explicit is rarely too much.
Nice history, instructive post. :)