MHLoppy to Programmer Humor@programming.dev • 29 days agoisInHell = 'true'fedia.ioimagemessage-square83fedilinkarrow-up1688arrow-down14file-text
arrow-up1684arrow-down1imageisInHell = 'true'fedia.ioMHLoppy to Programmer Humor@programming.dev • 29 days agomessage-square83fedilinkfile-text
minus-squareFushuan [he/him]linkfedilink2•29 days agoFyi, using a condition to assign a boolean is equivalent to assigning the condition itself. No need for the IF.
minus-square@jjjalljs@ttrpg.networklinkfedilink2•29 days 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