• jvisick
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      Personally, I think that if you’d rather write foo?a:b than foo ? a : b, you’re probably insane

        • jvisick
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          I agree! I don’t think 3?”stuff”:”empty” should work at all because I think it’s an insane way to type a ternary :) I’m also very open to admitting that it’s just my own strongly worded opinion.

          I think that in most cases, syntactically significant whitespace is a horrible idea - the one exception being that you should have space between operators/identifiers/etc. I don’t care how much, and 4 spaces should have no more special meaning than 1, but I do think that using a space to indicate “this thing is a different thing than the thing before it” is important.