Delimiter-first code
I think that For c-like syntaxes that have mostly `(, , )` and `; ; ;`patterns -- i.e. start (opening) and end (closing) delimiters with tokens inside separated by separators -- the most rational formatting is really to push *all delimiters to the left and let the closing delimiter dangle*.<p>Indeed, feels super unusual and tooling is lacking, but behold the concise rationality:<p><pre><code>    ; const url
      = &quot;...&quot;
    ; const contact
      = { &quot;firstName&quot;
          : &quot;John&quot;
        , &quot;lastName&quot;
          : &quot;Smith&quot;
        , &quot;address&quot;
          : { &quot;streetAddress&quot;
              : &quot;21 2nd Street&quot;
            , &quot;city&quot;
              : &quot;New York&quot;
            , &quot;state&quot;
              : &quot;NY&quot;
            , &quot;postalCode&quot;
              : 10021
            }
        , &quot;phoneNumbers&quot;
          : [ &quot;212 555-1234&quot;
            , &quot;646 555-4567&quot;
            ]
        }
    ; const result
      = sendData
        ( url
        , contact
        )
    ; rejoice
      ( result
      )

</code></pre>
Beauty. N.B. those opening and closing delimiters &quot;connected&quot; by breadcrumbs of separators. Isn&#x27;t it lovely?<p>Most developers I know will immediately lit torches and grab pitchforks if you show them this.<p>(Personally, I&#x27;m using it sometimes for private doodling, and while reformatting obfuscated or exploring some complicated codes; mostly just to improve own reading comprehension.)<p>If you relax the rule to allow &quot;single simple value&quot; to be in the same line (so break the rule for &quot;=&quot; &#x2F; &quot;:&quot; on the start of the line), it could look lie this [1]<p>[1] <a href="https:&#x2F;&#x2F;eldar.cz&#x2F;myf&#x2F;lab&#x2F;_sandbox&#x2F;indentation.html" rel="nofollow">https:&#x2F;&#x2F;eldar.cz&#x2F;myf&#x2F;lab&#x2F;_sandbox&#x2F;indentation.html</a>