• @[email protected]
    link
    fedilink
    3
    edit-2
    7 months ago

    Many languages allow type hole like _ to indicate to the compiler/lsp that this is an expression you will fill in later.

    So that lsp don’t put a squiggle on the entire program, only the type hole

    • myxi
      link
      fedilink
      English
      2
      edit-2
      7 months ago

      I also leave out little syntax errors and only only focus on the rough idea during my train of thoughts. And the variables, aren’t really supposed to be implied as private or unused – I do eventually meaningfully use them. If I have to prefix all my variables with a underscore to avoid the LSP, I might instead just disable the LSP. When I eventually turn the LSP back on, it tells me the actually unused variables and imports that I can now get rid of.

      Because of the LSP, I used to write maybe three hundred lines of code per hour, but now I probably average at least five hundred or more.