<html><head><style>
body {
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        padding:1em;
        margin:auto;
        background:#fefefe;
}
h1, h2, h3, h4, h5, h6 {
        font-weight: bold;
}
h1 {
        color: #000000;
        font-size: 28pt;
}
h2 {
        border-bottom: 1px solid #CCCCCC;
        color: #000000;
        font-size: 24px;
}
h3 {
        font-size: 18px;
}
h4 {
        font-size: 16px;
}
h5 {
        font-size: 14px;
}
h6 {
        color: #777777;
        background-color: inherit;
        font-size: 14px;
}
hr {
        height: 0.2em;
        border: 0;
        color: #CCCCCC;
        background-color: #CCCCCC;
display: inherit;
}
p, blockquote, ul, ol, dl, li, table, pre {
        margin: 15px 0;
}
a, a:visited {
        color: #4183C4;
        background-color: inherit;
        text-decoration: none;
}
#message {
        border-radius: 6px;
        border: 1px solid #ccc;
        display:block;
        width:100%;
        height:60px;
        margin:6px 0px;
}
button, #ws {
        font-size: 12 pt;
        padding: 4px 6px;
        border-radius: 5px;
        border: 1px solid #bbb;
        background-color: #eee;
}
code, pre, #ws, #message {
        font-family: Monaco;
        font-size: 10pt;
        border-radius: 3px;
        background-color: #F8F8F8;
        color: inherit;
}
code {
        border: 1px solid #EAEAEA;
        margin: 0 2px;
        padding: 0 5px;
}
pre {
        border: 1px solid #CCCCCC;
        overflow: auto;
        padding: 4px 8px;
}
pre > code {
        border: 0;
        margin: 0;
        padding: 0;
}
#ws { background-color: #f8f8f8; }
.bloop_markdown table {
border-collapse: collapse;
font-family: Helvetica, arial, freesans, clean, sans-serif;
color: rgb(51, 51, 51);
font-size: 15px; line-height: 25px;
padding: 0; }
.bloop_markdown table tr {
border-top: 1px solid #cccccc;
background-color: white;
margin: 0;
padding: 0; }
.bloop_markdown table tr:nth-child(2n) {
background-color: #f8f8f8; }
.bloop_markdown table tr th {
font-weight: bold;
border: 1px solid #cccccc;
margin: 0;
padding: 6px 13px; }
.bloop_markdown table tr td {
border: 1px solid #cccccc;
margin: 0;
padding: 6px 13px; }
.bloop_markdown table tr th :first-child, table tr td :first-child {
margin-top: 0; }
.bloop_markdown table tr th :last-child, table tr td :last-child {
margin-bottom: 0; }
.bloop_markdown blockquote{
border-left: 4px solid #dddddd;
padding: 0 15px;
color: #777777; }
blockquote > :first-child {
margin-top: 0; }
blockquote > :last-child {
margin-bottom: 0; }
code, pre, #ws, #message {
word-break: normal;
word-wrap: normal;
}
hr {
display: inherit;
}
.bloop_markdown :first-child {
-webkit-margin-before: 0;
}
code, pre, #ws, #message {
font-family: Menlo, Consolas, Liberation Mono, Courier, monospace;
}
.send { color:#77bb77; }
.server { color:#7799bb; }
.error { color:#AA0000; }</style></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="bloop_markdown"><p>Hi guys, I am, and also my English is, at my most limit fighting in this conversation. ;-)</p>
<p>I would not support, v1 v2 and v3 at all and would wish these options to be completely banned for a nice and simple model, even if all of the options can be implemented and might look OKAY for some specific examples. IMHO these mixed options overcomplicating the model.</p>
<p>I’d love to see the authors revision the proposal tackling the simple model I initially pushed forward, where I revised my personal opinion about the last content line, but most of you felt comfortable with.</p>
<ol>
<li>Single-line expression.</li>
<li>Multi-line expression with no text directly after/before the delimiters (not even a backslash like <code>"""\</code>).</li>
<li>Each line adds a new line (multi-line).</li>
<li>Disabling with the backslash.</li>
<li>Emitting a warning when trailing whitespaces are present but no <code>\</code> is found at the end of the same line. + Fix-it with <code>\n\</code></li>
<li>Not sure about the indent algorithm (I prefer the calculation of the prefix).</li>
</ol>
<p>I also would be pleased when the authors could put the model I would prefer in the alternative section, so that the majority and the core team could have the chance to decide for the better one during the next review run. </p>
<p>Thanks to everyone for tackling the topic forward. ;)</p>
<p></p></div><div class="bloop_original_html"><style>body{font-family:Helvetica,Arial;font-size:13px}</style><div id="bloop_customfont" style="font-family:Helvetica,Arial;font-size:13px; color: rgba(0,0,0,1.0); margin: 0px; line-height: auto;"><br></div> <br> <div id="bloop_sign_1492290364630605056" class="bloop_sign"><div style="font-family:helvetica,arial;font-size:13px">-- <br>Adrian Zubarev<br>Sent with Airmail</div></div> <br><p class="airmail_on">Am 15. April 2017 um 21:56:27, Ricardo Parada (<a href="mailto:rparada@mac.com">rparada@mac.com</a>) schrieb:</p> <blockquote type="cite" class="clean_bq"><span><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div></div><div>
<title></title>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Apr 15, 2017, at 3:28 PM, Thorsten Seitz
<<a href="mailto:tseitz42@icloud.com" class="">tseitz42@icloud.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div class="">
<blockquote type="cite" class="" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">
<div class="">
<div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div dir="auto" class="">
<div class="">
<div class="">
<div class="">Here is another example:</div>
</div>
<div class=""><br class=""></div>
<div class="">
<div class="">
<div class=""><font face="Menlo" class=""><span class="" style="font-size: 11px;">case .isExprSameType(let from, let
to):</span></font></div>
</div>
<div class="">
<div class=""><font face="Menlo" class=""><span class="" style="font-size: 11px;">return """</span><font color="#D12F1B" class=""><span class="" style="font-size: 11px;">checking a value with
optional type </span></font><font color="#1A04FF" class="" style="font-size: 11px;">\(</font><font color="#00AB00" class="" style="font-size: 11px;"><b class="">from</b></font><font color="#1A04FF" class=""><span class="" style="font-size: 11px;">)</span></font><span class="" style="font-size: 11px;"> </span></font><span class="" style="color: rgb(26, 4, 255); font-family: Menlo; font-size: 11px;">\</span></div>
<div class=""><span class="" style="font-family: Menlo; font-size: 11px;"> </span><font color="#D12F1B" class="" style="font-family: Menlo;"><span class="" style="font-size: 11px;">against dynamic type</span></font><span class="" style="font-family: Menlo; font-size: 11px;"> </span><font color="#1A04FF" class="" style="font-family: Menlo;"><span class="" style="font-size: 11px;">\(</span></font><font color="#00AB00" class="" style="font-family: Menlo; font-size: 11px;"><b class="">to</b></font><font color="#1A04FF" class="" style="font-family: Menlo;"><span class="" style="font-size: 11px;">)
\</span></font></div>
<div class=""><font face="Menlo" class=""><span class="" style="font-size: 11px;"> </span><font color="#D12F1B" class=""><span class="" style="font-size: 11px;">succeeds whenever the
value is non-'nil'; </span></font></font><span class="" style="color: rgb(26, 4, 255); font-family: Menlo; font-size: 11px;">\</span></div>
<div class=""><span class="" style="font-family: Menlo; font-size: 11px;"> </span><font face="Menlo" class=""><font color="#D12F1B" class=""><span class="" style="font-size: 11px;">did you mean to use '!=
nil'?</span></font></font><span class="" style="color: rgb(26, 4, 255); font-family: Menlo; font-size: 11px;">\</span></div>
<div class=""><span class="" style="font-family: Menlo; font-size: 11px;"> </span><span class="" style="font-family: Menlo; font-size: 11px;">"""</span></div>
</div>
</div>
<div class=""><br class=""></div>
</div>
</div>
</div>
</div>
</blockquote>
<div style="font-family: 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; -webkit-text-stroke-width: 0px;" class=""><br class=""></div>
<div style="font-family: 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; -webkit-text-stroke-width: 0px;" class="">This only works because the lines have been indented by
hand to match correctly which would not be the case with standard
indentation used in a code editor which is a fixed multiple of
spaces or tabs: the example had to add 2 spaces to the 2 tabs in
this example to fix the indentation (requiring 8-space-tabs). In
reality the example would look like follows (assuming
4-space-indentation but the problem is the same for other
indentations):</div>
<div style="font-family: 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; -webkit-text-stroke-width: 0px;" class=""><br class=""></div>
<div style="font-family: 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; -webkit-text-stroke-width: 0px;" class=""><span class="" style="font-size: 11px; font-family: Menlo;">case .isExprSameType(let
from, let to):</span><br class="">
<font face="Menlo" class=""><span class="" style="font-size: 11px;"> return """</span><font color="#D12F1B" class=""><span class="" style="font-size: 11px;">checking
a value with optional type </span></font><font color="#1A04FF" class="" style="font-size: 11px;">\(</font><font color="#00AB00" class="" style="font-size: 11px;"><b class="">from</b></font><font color="#1A04FF" class=""><span class="" style="font-size: 11px;">)</span></font><span class="" style="font-size: 11px;"> </span></font><span class="" style="color: rgb(26, 4, 255); font-family: Menlo; font-size: 11px;">\</span><br class="">
<font color="#D12F1B" class="" style="font-family: Menlo;"><span class="" style="font-size: 11px;"> against dynamic
type</span></font><span class="" style="font-family: Menlo; font-size: 11px;"> </span><font color="#1A04FF" class="" style="font-family: Menlo;"><span class="" style="font-size: 11px;">\(</span></font><font color="#00AB00" class="" style="font-family: Menlo; font-size: 11px;"><b class="">to</b></font><font color="#1A04FF" class="" style="font-family: Menlo;"><span class="" style="font-size: 11px;">)
\</span></font><br class="">
<font face="Menlo" class=""><font class=""><span class="" style="color: rgb(209, 47, 27); font-size: 11px;">
succeeds whenever the value is
non-'nil'; </span></font></font><span class="" style="color: rgb(26, 4, 255); font-family: Menlo; font-size: 11px;">\</span><br class="">
<font face="Menlo" class=""><font color="#D12F1B" class=""><span class="" style="font-size: 11px;">
did you mean to use '!=
nil'?</span></font></font><span class="" style="color: rgb(26, 4, 255); font-family: Menlo; font-size: 11px;">\</span><br class="">
<div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div dir="auto" class="">
<div class="">
<div class="">
<div class="">
<div class=""><span class="" style="font-family: Menlo; font-size: 11px;"><span class="" style="color: rgb(209, 47, 27);">
</span><span class="" style="color: rgb(209, 47, 27);"> </span>"""</span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<div><br class=""></div>
<div>That is perfectly fine too. I don't find this style confusing.
The 2nd, 3rd and 4th lines are stripped of their indentation
according to the closing delimiter. And that is it.</div>
<br class="">
<blockquote type="cite" class="">
<div class="">
<div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div class="">
<blockquote type="cite" class="" style="font-family: Helvetica; font-size: 14px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px;">
<div class="">
<div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div dir="auto" class="">
<div class="">
<div class="">I personally do not find this style confusing at
all.<span class="Apple-converted-space"> </span></div>
</div>
</div>
</div>
</div>
</blockquote>
<div style="font-family: 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; -webkit-text-stroke-width: 0px;" class=""><br class=""></div>
<div style="font-family: 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; -webkit-text-stroke-width: 0px;" class="">The confusion arises over the leading newline: why does
text directly following the opening triple quote have a newline
while an empty line after the opening triple quote does not have a
newline?</div>
</div>
</div>
</div>
</blockquote>
<div><br class=""></div>
I think it is a good thing to have <b class="">the</b>
<b class="">option</b> to start the line of text immediately after
the opening delimiter or on the next line.</div>
<div><br class=""></div>
<div>Regards,</div>
<div>Ricardo</div>
<div><br class=""></div>
</div></div></span></blockquote></div><div class="bloop_markdown"><p></p></div></body></html>