News for hackers. Stuff that matters.
Re:Pitfalls of Safe Rust by neillyons on Sunday April 06, 2025 @03:33PM (#43604231)
Golang will panic with a runtime error index out of range if you index out of bounds. There doesn't seem to be a nice built in way to do `arr.get(3)` like in Rust.

    slice := []int{1, 2, 3}
    i := slice[3]
    fmt.Println(i)

There are no comments on this comment yet.