top 12 comments

sorted by: hot top controversial new old
[–] 5 points 3 years ago (1 child)

This is just a rant about personal frustrations. I even probably agree with him on most of these things, but I don't think we need to share this kind of thing here. So tired of threads about how much we all hate and disagree with each other's languages. It's better if the rust people get rust and the go people get go. There is no one holy grail of a language that everyone is going to like.

  • source
  • hideshow 2 child comments
  • [–] 5 points 3 years ago* (last edited 3 years ago) (2 children)

    And overall the author does not really make any good arguments beyond rust did it different to go but they are already used to the way go does things. And honestly, all the points they make are points that frustrate me about go, not rust. Which is all a matter of personal preference, no technical arguments were really made.

  • source
  • hideshow 4 child comments
  • [–] 4 points 3 years ago

    Yeah, statements like this just sound like "me not want learn complex language for complex tasks":

    generics look like they've been put through a syntax juice blender

    Like... What? No, they look like what you'd expect them to look like in the context of Rust's typing system

  • source
  • parent
  • [–] 4 points 3 years ago (1 child)

    I went into this with an open mind, then I saw the rant about error handling and I closed the article immediately.

    Rusts error handling in combination with eyre/anyhow is the most pleasant error handling I have used in any language. You know exactly which lines can return errors, you can very quickly propagate them and attach context so that you can quickly troubleshoot later on, and it's completely natural and unintrusive. No figuring out whether you already logged the error somewhere else, no inconsistent handling of them, it's one library that does everything for you and you never have to think about it.

    The go example is comparatively awful. You are forced to handle the error at each stage, and it runs into the same problem as exceptions where you're not really sure at which point you actually handled the error among other things.

  • source
  • hideshow 2 child comments
  • [–] 0 points 3 years ago (2 children)

    @gnus_migrate @nebiros In Go we consider errors as values and not fatal or exceptions. For example sql.ErrNoRows , io.EOF, custom... It's why they are returned and used like any other values.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 1 point 3 years ago

    Disclaimer: Rust is an awesome language, and this blog is meant purely for some fun and perhaps a bit of frustration!

    Yeah, yeah, ok I get it. But please, please don't use images for code samples!

  • source
  • [–] 1 point 3 years ago

    This only made me dislike go more

  • source
  • [–] 1 point 3 years ago* (last edited 3 years ago)

    I know this is a piece of humor, but half of these are not surprising coming from a FP background (expression oriented, sum types, strong generic typing... )

    Also, daring to compare Go and Rust error handling, and saying that Go's one is better is... bold. It's arguably one of the worst in any language.

  • source
  • load more comments
    view more: next ›