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?

    • fox [comrade/them]@hexbear.net
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 months ago

      I recall that Gondor very much needed a king to return, like it was a pretty big deal that returning as king to Gondor was a necessary deal. Gondor needed Aragorn to return as king. It’s all documented in the third book, The Return of the King.

  • purplemonkeymad@programming.dev
    link
    fedilink
    arrow-up
    1
    ·
    6 months ago

    It’s less of a main, and more of a “don’t do this if being imported.” You can just throw code without that block and it will run.