• Owl@mander.xyz
    link
    fedilink
    arrow-up
    6
    ·
    4 months ago

    But the rust compiler explains

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

    • billwashere@lemmy.world
      link
      fedilink
      English
      arrow-up
      0
      ·
      4 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;

      • arrowMace@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        4 months ago

        Because then logically extending this you end up with JavaScript, where “1”==1 and it’s super hard to reason about what will/should happen