• ExLisper@lemmy.curiana.net
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    7 hours ago

    In my experience rust compiler simply moves the errors to earlier stage of development. With rust I write something and get bunch of errors right in the IDE. I spend some time fixing those and when all the compilation errors are gone in 99% of cases the code works and does what it’s supposed to do.

    With other languages I write some code and the compiler/interpreter says it’s all good. I then run it, get bunch of errors and have to do some debugging, move back and forth between the editor and the command line/browser/application and fix all the bugs one by one.

    So yeah, rust compiler complains a lot but it’s to make your life easier, not harder. For me working rust way is just much more pleasant. I get immediate visual clues about the errors right in the IDE. When I finally get it right and all the errors dispersal it’s like solving a small puzzle. You know you got it and it feels good. With other languages you think you got it all the time only to find another bug when you run it. Doing it this way is much more frustrating.