• Fushuan [he/him]@lemm.ee
    link
    fedilink
    arrow-up
    2
    ·
    2 days ago

    Fyi, using a condition to assign a boolean is equivalent to assigning the condition itself. No need for the IF.

    • jjjalljs@ttrpg.network
      link
      fedilink
      arrow-up
      2
      arrow-down
      1
      ·
      2 days ago

      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