• HamsterRage@lemmy.ca
      link
      fedilink
      arrow-up
      14
      ·
      2 months ago

      You might want to think about it a bit more before putting it to work. The comment with the streams example is far, far better.

    • FizzyOrange
      link
      fedilink
      arrow-up
      10
      ·
      2 months ago

      Yeah, honestly you should stick to if/else until you’re really sure you want to do something more complex.