<div dir="ltr"><div dir="ltr">On Thu, Jul 4, 2019 at 1:32 AM Sven Barth via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
const SomeString = `Whatever<br>
bar<br>
blubb<br>
foobar`;<br></blockquote><div><br></div><div>You can do: </div><div><br></div><div>const SomeString = </div><div>`Whatever<br>bar<br>blubb<br>foobar`;<br></div><div><br></div><div>Not that I think the "ugliness" argument makes any sense whatsoever. I regularly come across entire source files that are IMO formatted very poorly. Do I think FPC should somehow detect that fact and not compile them? No, of course not. Multiline strings, like everything in a source file, are exactly what you write them as.</div><div><br></div><div><div dir="ltr">On Thu, Jul 4, 2019 at 1:46 AM J. Gareth Moreton <<a href="mailto:gareth@moreton-family.com">gareth@moreton-family.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">It's a shame, because I like the feature in principle, but the <br>whitespace problem is a bit of a deal-breaker for me.</blockquote><div><br></div><div>There is no "problem." A string, again, *is exactly what you write it as.*</div><div><br></div><div><div dir="ltr">On Thu, Jul 4, 2019 at 1:46 AM J. Gareth Moreton <<a href="mailto:gareth@moreton-family.com">gareth@moreton-family.com</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Also, things like <br>trailing spaces and the line terminators being either #10 or #10#13 may <br>cause a lot of problems if the string has to be known exactly (e.g. for <br>cryptographic hash generation).</blockquote><div><br></div><div>This, which is IMO *still* a non-problem in the sense of it should absolutely not be the compiler's duty to babysit and/or police line people's *line endings*, would not even be "solved" by IncludeString as it would still then depend on exactly how an editor *saves* the line endings.</div><div><br></div><div>Anyways, regardless of whatever bizarre nitpicky complaints people have here and whether or not anyone wants to merge it into trunk, I fully intend to keep developing this (already working, as I demonstrated!) feature and make the patch available for anyone who does want to use it (which as far as I can tell is a significantly-higher-than-zero number of people.)</div></div></div></div></div></div></div>