[swift-evolution] multi-line string literals.

Basem Emara contact at basememara.com
Mon May 2 05:47:25 CDT 2016


I’ve been trying to keep up with this thread and this crossed my mind too. Of course, we don’t want to rule out multi-line strings because of readability and flexibility (Python “”” or Markdown’s ```…``` would be my vote). However, a built-in tempting engine like Mustache would be progressive and powerful.

> On May 2, 2016, at 6:31 AM, Haravikk via swift-evolution <swift-evolution at swift.org> wrote:
> 
> So I’m pretty late to the discussion here, but my question is; do we really want to encourage large blocks of text in code? They tend to bloat things, especially if they’re not used very often, and even if they are, any large chunk of text can be loaded from file and cached if (and when) necessary. If you need to process it, then some kind of templating system would be better.
> 
> I dunno, I just feel like if you’re storing enough text that the current syntax becomes burdensome, then perhaps the text should be stored elsewhere? I’d rather discourage big blocks of text in code personally.
> _______________________________________________
> swift-evolution mailing list
> swift-evolution at swift.org
> https://lists.swift.org/mailman/listinfo/swift-evolution



More information about the swift-evolution mailing list