SE-0200: Enhancing String Literals Delimiters to Support Raw Text

  • What is your evaluation of the proposal?

My brain has already switched! :tada:

-let json = """
-    { "name": "foo" }
-    """
-let json = "{ \"name\": \"foo\" }"
+let json = #"{ "name": "foo" }"#

Ruby scripts that use DATA and __END__ are also a target.

  • Is the problem being addressed significant enough to warrant a change to Swift?

The proposal says it better than I could.

  • Does this proposal fit well with the feel and direction of Swift?

Yes, thanks for the much welcomed support for interpolation. The pound sign clashes a little bit with the domain of compiler directives, but if eminent grammarians are ok, I'm ok, too.

  • If you have used other languages or libraries with a similar feature, how do you feel that this proposal compares to those?

Very good

  • How much effort did you put into your review? A glance, a quick reading, or an in-depth study?

I followed the very long process that ended with this proposal.

1 Like