Comment on What to learn next, Swift or Rust
abhibeckert@lemmy.world 10 months agoHonestly - now that you know one language learning any new language is a pretty simple task. For example - here’s a hello world in the three languages:
# Python print("Hello, World!")
// Swift print("Hello, World!")
// Rust fn main() { println!("Hello, World!"); } As you can see, the differences are pretty minimal aside from rust's requirement to have a "main" function. ChatGPT is very good at translating from one language to another. Try pasting in some code you've already written in python and ask it to convert it to Swift or Rust.
Bluetreefrog@lemmy.world 10 months ago
Python actually isn’t my first language, just my current choice. I’ve programmed in Basic, Pascal, Fortran, PL-SQL, Prolog and C at various times in the past.
abhibeckert@lemmy.world 10 months ago
OK - well at the end of the day the right approach is to have a problem you’re trying to achieve and pick the best language for that (wether you know the language or not).
If it’s MacOS/iOS apps, then definitely don’t choose Rust. But reconsider that choice for your next project.
Also, with modern large language models, it’s even easier to work with an unfamiliar language. And honestly it wasn’t ever all that difficult.