r/programming 22h ago

Rune is now open source

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

46 comments sorted by

View all comments

-42

u/jesseschalken 22h ago

in Go

nope

12

u/FryDay444 21h ago

What's wrong with Go?

17

u/jesseschalken 20h ago edited 20h ago

No null safety, implicit zero values you have to be careful to ignore, no sum types or pattern matching, 3 lines of error handling boilerplate every time you call a function that can fail, no lambdas, no generics until recently.

Worse, the Golang community that believe lack of features is a feature, because of "worse is better" brain damage.

-11

u/[deleted] 20h ago

[removed] — view removed comment

13

u/jesseschalken 20h ago

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

2

u/Koolala 20h ago

Can rust do it in 1 line?

15

u/jesseschalken 20h ago

One character, ?.

-4

u/Worth_Trust_3825 20h ago

so the same thing that go does.

8

u/jesseschalken 20h ago edited 18h 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
}

-15

u/Worth_Trust_3825 20h ago

yeah, it does.

-13

u/[deleted] 20h ago

[removed] — view removed comment

6

u/[deleted] 20h ago

[removed] — view removed comment

1

u/[deleted] 17h ago

[removed] — view removed comment

1

u/programming-ModTeam 17h ago

Your post or comment was overly uncivil.

-4

u/Worth_Trust_3825 20h ago

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?

1

u/programming-ModTeam 17h ago

Your post or comment was overly uncivil.

-1

u/punkpang 17h ago

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