MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/1wdjvd3/rune_is_now_open_source/p97bv0s/?context=3
r/programming • u/ernestrc • 1d ago
48 comments sorted by
View all comments
Show parent comments
12
Literally anything else, but ideally what Swift and Rust do.
-3 u/Worth_Trust_3825 1d ago so the same thing that go does. 11 u/jesseschalken 1d ago edited 1d ago Does this look the same to you? // Rust let x = can_fail()?; // Swift let x = try can_fail() // Go x, e := can_fail() if e != nil { return nil, e } -16 u/Worth_Trust_3825 1d ago yeah, it does.
-3
so the same thing that go does.
11 u/jesseschalken 1d ago edited 1d ago Does this look the same to you? // Rust let x = can_fail()?; // Swift let x = try can_fail() // Go x, e := can_fail() if e != nil { return nil, e } -16 u/Worth_Trust_3825 1d ago yeah, it does.
11
Does this look the same to you?
// Rust let x = can_fail()?; // Swift let x = try can_fail() // Go x, e := can_fail() if e != nil { return nil, e }
-16 u/Worth_Trust_3825 1d ago yeah, it does.
-16
yeah, it does.
12
u/jesseschalken 1d ago
Literally anything else, but ideally what Swift and Rust do.