you are viewing a single comment's thread
view the rest of the comments
[–] 15 points 2 months ago (1 child)

Some would call it the single biggest source of gotcha moments learning the language

  • source
  • parent
  • hideshow 2 child comments
  • [–] 5 points 2 months ago

    Also the source of most of the things Rust gets criticized for. Ugly syntax? That's mainly because of the lifetimes, which server as instructions for the Borrow Checker. Too many types of strings? So that the Borrow Checker can determine how the memory slice the text is stored in is managed. And of course - the complicated error messages are where the compiler is trying to explain to you what the Borrow Checker is thinking.

  • source
  • parent