MHLoppy@fedia.io to Programmer Humor@programming.dev · 25 days agoisInHell = 'true'fedia.ioimagemessage-square62linkfedilinkarrow-up1661file-text
arrow-up1661imageisInHell = 'true'fedia.ioMHLoppy@fedia.io to Programmer Humor@programming.dev · 25 days agomessage-square62linkfedilinkfile-text
minus-squareFushuan [he/him]@lemm.eelinkfedilinkarrow-up1·25 days agoFyi, using a condition to assign a boolean is equivalent to assigning the condition itself. No need for the IF.
minus-squarejjjalljs@ttrpg.networklinkfedilinkarrow-up3·25 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