Also, do y’all call main() in the if block or do you just put the code you want to run in the if block?

  • grrgyle@slrpnk.net
    link
    fedilink
    arrow-up
    0
    ·
    3 months ago

    I remember how weird this looked the first time I saw it and while I may now understand it, it still looks jank af

    • bane_killgrind@slrpnk.net
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 months ago

      Now think about this, you have logic that doesn’t make sense when run directly, but you need it to be a library.

      You have multiple name=main statements in some of your functions