MHLoppy to Programmer [email protected] • 6 months agoisInHell = 'true'fedia.ioimagemessage-square61fedilinkarrow-up1663arrow-down14file-text
arrow-up1659arrow-down1imageisInHell = 'true'fedia.ioMHLoppy to Programmer [email protected] • 6 months agomessage-square61fedilinkfile-text
minus-squareFushuan [he/him]linkfedilink1•6 months agoFyi, using a condition to assign a boolean is equivalent to assigning the condition itself. No need for the IF.
minus-square@[email protected]linkfedilink2•6 months agotrue, though sometimes i find the more verbose style easier to read, and more maintainable (eg: you want to do something else in the block, you can just add a line instead of changing your ternary / etc). Small things
Fyi, using a condition to assign a boolean is equivalent to assigning the condition itself. No need for the IF.
true, though sometimes i find the more verbose style easier to read, and more maintainable (eg: you want to do something else in the block, you can just add a line instead of changing your ternary / etc). Small things