• anton@piefed.blahaj.zone
    link
    fedilink
    English
    arrow-up
    21
    ·
    edit-2
    1 day ago

    My IDE says: '(', '+', '-', '.', ';', <operator>, '[' or '}' expected, got ';'
    But the rust compiler explains

    error: unknown start of token: \u{37e}  
    help: Unicode character ';' (Greek Question Mark) looks like ';' (Semicolon), but it is not```   
    what a killjoy.
    • Owl@mander.xyz
      link
      fedilink
      arrow-up
      15
      ·
      1 day 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
        1
        ·
        8 hours 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;

      • anton@piefed.blahaj.zone
        link
        fedilink
        English
        arrow-up
        6
        ·
        1 day 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.