• ddh
    link
    fedilink
    English
    1952 years ago

    As your future colleague wondering what the hell that variable is for, thanks Go.

    • @[email protected]
      link
      fedilink
      692 years ago

      I prefer for it to be just a warning so I can debug without trouble, the build system will just prevent me from completing the pull request with it (and any other warning).

    • @[email protected]
      link
      fedilink
      422 years ago

      Changing it will bring down the entire system.

      We’ve spent ten million dollars and do not know why.

    • Nioxic
      link
      fedilink
      English
      272 years ago

      Isnt the syntax highlighting it as mever used?

      So why would they wonder?

      • @[email protected]
        link
        fedilink
        -22 years ago

        If it is a pure value, I’d assume yes, but if it is tied to a side effect (E.g. write its value to a file), then it would be not used but still could break your app if removed.

        I’m not familiar with rust language specifically, but generally that’s what could happen

    • @[email protected]
      link
      fedilink
      English
      252 years ago

      A quick “find all references” will point out it’s not used and can be deleted if it accidentally gets checked in but ideally, you have systems in place to not let it get checked into the main branch in the first place.

      • Flarp
        link
        fedilink
        272 years ago

        Yeah that should be looked for in a CI line check, not a compilation requirement

      • @anemoia_one
        link
        English
        5
        edit-2
        2 years ago

        Yeah any compiler should support environments or config files. Our CI would never work with without --env “stage”