• JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      1 year ago

      That example is using tabs for both indentation and alignment. The article you linked even says not using tabs for alignment is a solution.

      • Do not use tabs for alignment. In such case given example should look like:
      fun foo x =
      --->let val abs = if x > 0
      --->              then x
      --->              else -x
      --->in
      --->--->(* ... *)
      --->end
      
        • JackbyDev@programming.dev
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Many styles are difficult to maintain, I’m not saying it is or isn’t. I’m saying that using only spaces for alignment will not let your alignment get messed up with various tabstops settings.