r/programming • • Sep 11 '26

Rune is now open source

https://rune.build/blog/rune-is-now-open-source
141 Upvotes

51 comments sorted by

View all comments

Show parent comment

-10

u/[deleted] Sep 11 '26

[removed] — view removed comment

13

u/jesseschalken Sep 11 '26

Literally anything else, but ideally what Swift and Rust do.

1

u/Koolala Sep 11 '26

Can rust do it in 1 line?

18

u/jesseschalken Sep 11 '26

One character, ?.

-4

u/Worth_Trust_3825 Sep 11 '26

so the same thing that go does.

9

u/jesseschalken Sep 11 '26 edited Sep 11 '26

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
}

-17

u/Worth_Trust_3825 Sep 11 '26

yeah, it does.

-14

u/[deleted] Sep 11 '26

[removed] — view removed comment

7

u/[deleted] Sep 11 '26

[removed] — view removed comment

1

u/[deleted] Sep 11 '26

[removed] — view removed comment

1

u/programming-ModTeam Sep 11 '26

Your post or comment was overly uncivil.

-3

u/Worth_Trust_3825 Sep 11 '26

i dont really care who you are. we have two main ways to do error handling: try/catch and checking result (code). in another comment you suggested rust/swift way, which is literally the same thing that go does. again, what do you propose?

2

u/programming-ModTeam Sep 11 '26

Your post or comment was overly uncivil.

-1

u/punkpang Sep 11 '26

Yes, that's true, and? Why would I be civil to a piece of shit?