this post was submitted on 12 Mar 2024
39 points (100.0% liked)

Programming

17333 readers
342 users here now

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 [email protected]



founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 7 months ago (2 children)

Just out of curiosity: which do you think is closer to Python? Kotlin or Swift?

Not knowing wither, my hunch would be to say Kotlin. But I am curious.

[–] [email protected] 4 points 7 months ago

Kotlin and Swift have similar syntax and neither are like Python to be honest. If I were to pick one, Kotlin all the way. You can do a fair amount of back-end work with itas well.

[–] [email protected] 1 points 7 months ago* (last edited 7 months ago) (1 children)

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

[–] [email protected] 2 points 7 months ago (1 children)

That's a weird way to compare them...

[–] [email protected] 2 points 7 months ago (1 children)

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

[–] [email protected] 1 points 7 months ago (1 children)

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.

[–] [email protected] 1 points 7 months ago

And I said, if op doesn't want to learn a new language, here are some python mobile frameworks. And was explicitly asked which of kotlin/swift I would recommend for a python dev.