<div dir="ltr"><div class="markdown-here-wrapper" style=""><p style="margin:1.2em 0px!important">What do you all think about automatic dedenting of these literals? The excess whitespace is rarely useful; and usually spawns a <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);border-radius:3px;display:inline;background-color:rgb(248,248,248)">dedent</code> function which comes to decorate all such strings.</p>
<p style="margin:1.2em 0px!important">On Thu, 10 Dec 2015 at 17:43 Travis Tilley via swift-evolution <a href="http://mailto:swift-evolution@swift.org">swift-evolution@swift.org</a> wrote:</p>
<p style="margin:1.2em 0px!important"></p><div class="markdown-here-exclude"><p></p><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">I have no idea how genstrings and so forth work, but if they actually parse the code (which seems likely), then they&#39;ll be getting back the same AST they would for normal strings (since this feature would be implemented pretty much entirely in the swift lexer).</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">If I am wrong, someone please correct me. I&#39;m non-apple and don&#39;t know how all of this works. ;)</div></div><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">-Travis Tilley</div></div><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 10, 2015 at 8:12 PM, Casey Cady <span dir="ltr">&lt;<a href="mailto:casey@kckd.org" target="_blank">casey@kckd.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>I really like the idea but I wonder how this would interact with NSLocalizedString exporting within XCode.</div><span><div></div></span></div></blockquote></div><br>
</div></div>
<img src="https://u2002410.ct.sendgrid.net/wf/open?upn=kKLYQ91ZFOe6ryzRU3CXyiq4yOweT6LjPwa6z8Qwa5eVqW38-2B1yw-2ByuTIXc88y4uqWJeVbdd6opCzHtpZDo1SY1enP4GxyO0EGzPWCDBEDhZbkWSbGyk-2B2ztNANIEFPTNvqKyUsLjJTv3PvwDPQxaBUAFz5NSNaI-2BDmxfDYVgZd7W1nlx1mlYQ1dVk0HpcdkD-2BjB3gagkE3y-2F-2FNrT7lX3WKpxlQSamB2Qom1JjUvfvg-3D" alt="" width="1" height="1" border="0" style="min-height:1px!important;width:1px!important;border-width:0!important;margin-top:0!important;margin-bottom:0!important;margin-right:0!important;margin-left:0!important;padding-top:0!important;padding-bottom:0!important;padding-right:0!important;padding-left:0!important">
_______________________________________________<br>
swift-evolution mailing list<br>
<a href="mailto:swift-evolution@swift.org" target="_blank">swift-evolution@swift.org</a><br>
<a href="https://lists.swift.org/mailman/listinfo/swift-evolution" rel="noreferrer" target="_blank">https://lists.swift.org/mailman/listinfo/swift-evolution</a><br>
</blockquote><p></p></div><p style="margin:1.2em 0px!important"></p>
<div title="MDH:V2hhdCBkbyB5b3UgYWxsIHRoaW5rIGFib3V0IGF1dG9tYXRpYyBkZWRlbnRpbmcgb2YgdGhlc2Ug
bGl0ZXJhbHM/IFRoZSBleGNlc3Mgd2hpdGVzcGFjZSBpcyByYXJlbHkgdXNlZnVsOyBhbmQgdXN1
YWxseSBzcGF3bnMgYSBgZGVkZW50YCBmdW5jdGlvbiB3aGljaCBjb21lcyB0byBkZWNvcmF0ZSBh
bGwgc3VjaCBzdHJpbmdzLjxicj48YnI+PGRpdiBjbGFzcz0iZ21haWxfcXVvdGUiPjxkaXYgZGly
PSJsdHIiPk9uIFRodSwgMTAgRGVjIDIwMTUgYXQgMTc6NDMgVHJhdmlzIFRpbGxleSB2aWEgc3dp
ZnQtZXZvbHV0aW9uICZsdDtzd2lmdC1ldm9sdXRpb25Ac3dpZnQub3JnJmd0OyB3cm90ZTo8YnI+
PC9kaXY+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nJUN2xYM1dLcHhsUVNhbUIy
UW9tMUpqVXZmdmctM0QiIGFsdD0iIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBib3JkZXI9IjAiIHN0
eWxlPSJtaW4taGVpZ2h0OjFweCFpbXBvcnRhbnQ7d2lkdGg6MXB4IWltcG9ydGFudDtib3JkZXIt
d2lkdGg6MCFpbXBvcnRhbnQ7bWFyZ2luLXRvcDowIWltcG9ydGFudDttYXJnaW4tYm90dG9tOjAh
aW1wb3J0YW50O21hcmdpbi1yaWdodDowIWltcG9ydGFudDttYXJnaW4tbGVmdDowIWltcG9ydGFu
dDtwYWRkaW5nLXRvcDowIWltcG9ydGFudDtwYWRkaW5nLWJvdHRvbTowIWltcG9ydGFudDtwYWRk
aW5nLXJpZ2h0OjAhaW1wb3J0YW50O3BhZGRpbmctbGVmdDowIWltcG9ydGFudCI+Cl9fX19fX19f
X19fX19fX19fX19fX19fX19fX19fXzx3YnI+X19fX19fX19fX19fX19fX188YnI+CnN3aWZ0LWV2
b2x1dGlvbiBtYWlsaW5nIGxpc3Q8YnI+CjxhIGhyZWY9Im1haWx0bzpzd2lmdC1ldm9sdXRpb25A
c3dpZnQub3JnIiB0YXJnZXQ9Il9ibGFuayI+c3dpZnQtZXZvbHV0aW9uQHN3aWZ0Lm9yZzwvYT48
YnI+CjxhIGhyZWY9Imh0dHBzOi8vbGlzdHMuc3dpZnQub3JnL21haWxtYW4vbGlzdGluZm8vc3dp
ZnQtZXZvbHV0aW9uIiByZWw9Im5vcmVmZXJyZXIiIHRhcmdldD0iX2JsYW5rIj5odHRwczovL2xp
c3RzLnN3aWZ0Lm9yZy9tYWlsbWE8d2JyPm4vbGlzdGluZm8vc3dpZnQtZXZvbHV0aW9uPC9hPjxi
cj4KPC9ibG9ja3F1b3RlPjwvZGl2Pg==" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div></div></div>