Comment on What to learn next, Swift or Rust

<- View Parent
abhibeckert@lemmy.world ⁨10⁩ ⁨months⁩ ago

Honestly - 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.

source
Sort:hotnewtop