• Owl@mander.xyz
    link
    fedilink
    arrow-up
    19
    ·
    2 months ago

    But the rust compiler explains

    If this is true then rust deserves all the praise it gets

    • anton@piefed.blahaj.zone
      link
      fedilink
      English
      arrow-up
      6
      ·
      2 months ago

      While the language can be hard to get used to, the error messages are mostly great.
      But sometimes you can send it on a goose chase with impossible type inference.

    • billwashere@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 months ago

      This is pretty cool. But my question is if the compiler knows it’s basically the same thing visually, why doesn’t it treat it the same way as far as syntax and just make them functionally equivalent;

    • boonhet@sopuli.xyz
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Rust’s compiler is pretty much the reason the language gets so much praise. The borrow checking of course is the major reason, but it’s great at hints too.