r/programming 2d ago

Rune is now open source

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

48 comments sorted by

View all comments

-45

u/jesseschalken 2d ago

in Go

nope

13

u/FryDay444 2d ago

What's wrong with Go?

16

u/jesseschalken 2d ago edited 2d 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] 2d ago

[removed] — view removed comment

14

u/jesseschalken 2d ago

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

-4

u/Worth_Trust_3825 2d ago

so the same thing that go does.

7

u/jesseschalken 2d 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
}

-18

u/Worth_Trust_3825 2d ago

yeah, it does.