<html><head><style>body{font-family:Helvetica,Arial;font-size:16px}</style></head><body><div style="font-family:Helvetica,Arial;font-size:16px">On July 8, 2019 at 6:45:47 AM, Gijs Kruitbosch (<a href="mailto:gijskruitbosch@gmail.com">gijskruitbosch@gmail.com</a>) wrote:</div><div style="font-family:Helvetica,Arial;font-size:16px"><br></div> <div><blockquote type="cite" class="clean_bq" style="font-family:Helvetica,Arial;font-size:16px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span><div><span style="color:rgb(0,0,0);font-family:"helvetica Neue",helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none;float:none;display:inline!important">whereas a JS multiline if statement looks like this:</span><br style="color:rgb(0,0,0);font-family:"helvetica Neue",helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><br style="color:rgb(0,0,0);font-family:"helvetica Neue",helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="color:rgb(0,0,0);font-family:"helvetica Neue",helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none;float:none;display:inline!important">    if (</span><br style="color:rgb(0,0,0);font-family:"helvetica Neue",helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="color:rgb(0,0,0);font-family:"helvetica Neue",helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none;float:none;display:inline!important">      typeof aIsSimulated != "boolean" &&</span><br style="color:rgb(0,0,0);font-family:"helvetica Neue",helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="color:rgb(0,0,0);font-family:"helvetica Neue",helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none;float:none;display:inline!important">      typeof aIsSimulated != "undefined"</span><br style="color:rgb(0,0,0);font-family:"helvetica Neue",helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="color:rgb(0,0,0);font-family:"helvetica Neue",helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none;float:none;display:inline!important">    ) {</span><br style="color:rgb(0,0,0);font-family:"helvetica Neue",helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><br style="color:rgb(0,0,0);font-family:"helvetica Neue",helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><br style="color:rgb(0,0,0);font-family:"helvetica Neue",helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="color:rgb(0,0,0);font-family:"helvetica Neue",helvetica;font-size:14px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration:none;float:none;display:inline!important">That seems pretty unfortunate to me.</span></div></span></blockquote></div><p>More than unfortunate; stylistically, that becomes dangerously easy to confuse with something that looks like:</p><p><span style="font-family:"helvetica Neue",helvetica;font-size:14px">    if {</span><br style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-family:"helvetica Neue",helvetica;font-size:14px">      typeof aIsSimulated != "boolean" &&</span><br style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-family:"helvetica Neue",helvetica;font-size:14px">      typeof aIsSimulated != "undefined</span><font face="helvetica Neue, helvetica"><span style="font-size:14px">”</span></font><br style="font-family:"helvetica Neue",helvetica;font-size:14px"><span style="font-family:"helvetica Neue",helvetica;font-size:14px">    } {</span><br style="font-family:"helvetica Neue",helvetica;font-size:14px"></p><div>Which obviously isn’t valid. This, at least, is something we really ought to revisit. Other changes I’m seeing look good, or are at least reasonable. This one, though, I think is not.</div><div><br></div> <div class="gmail_signature"><div><br></div><div>Eric Shepherd</div><div>Senior Technical Writer</div><div><a href="https://developer.mozilla.org/">MDN Web Docs</a></div><div>Blog: <a href="https://www.bitstampede.com">https://www.bitstampede.com/</a></div></div></body></html>