You are viewing a single thread.
View all comments View context
1 point
*

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

permalink
report
parent
reply
2 points

That’s a weird way to compare them…

permalink
report
parent
reply
2 points

Sure, but how else should I compare a language I’ve never used to python?

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply

Programming

!programming@programming.dev

Create post

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person’s post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you’re posting long videos try to add in some form of tldr for those who don’t want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



Community stats

  • 3.1K

    Monthly active users

  • 1.8K

    Posts

  • 30K

    Comments