• Solemarc@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    5 months ago

    I’ve never used swift myself, but as far as I’m aware swift doesn’t need to have a main function so I’d say it’s closer

        • themusicman@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          5 months ago

          Even in python, writing code at the top level is not recommended for any non-trivial project. I mean, you might as well say “kotlin is closer to python because they both end with N”. Neither method of comparison offers any value to OP.