News for hackers. Stuff that matters.
Re:The borrowchecker is what I like the least about Rust by Mawr on Sunday July 20, 2025 @10:04AM (#44625297)
> I hate the fact that they didn't want runtime assertions as an example,

So you hate writing:

    if (something != 1) {
     panic("oh no!")
    }
vs

    assert(something != 1, "oh no!")
? Reminds me of people complaining about Python's significant indentation. If that's what you're complaining about, you have nothing to complain about.
Re:The borrowchecker is what I like the least about Rust by devjab on Sunday July 20, 2025 @02:15PM (#44627766)
I think your point is fair as you can do runtime safety in Go by wrapping Panic, but that's not exactly what Panic is meant to be used for. I guess it's more of a intent vs syntax thing, aside from the part where Panic can be Recover()ed.

You're taking it out of a context of me praising Golang, however, and while I do hate the fact that they didn't just do runtime assertions, it's not like I dislike Go as a whole because of it.