[swift-evolution] multi-line string literals.
Chris Lattner
clattner at apple.com
Mon Apr 25 18:42:27 CDT 2016
On Apr 25, 2016, at 4:55 AM, Patrick Gili <gili.patrick.r at gili-labs.com> wrote:
> My thinking here was two-fold:
> 1) Address the need to accommodate the lack of regex literals today, and
> 2) Future-proof the proposal to accommodate the eventuality of regex literals.
MHO is that regex literals are an essential feature for Swift to eventually have, but that they are a huge design project and completely separate from multi-line string literals.
-Chris
>
> -Patrick
>
>> On Apr 24, 2016, at 6:09 PM, Chris Lattner <clattner at apple.com> wrote:
>>
>> On Apr 22, 2016, at 12:54 PM, Patrick Gili via swift-evolution <swift-evolution at swift.org> wrote:
>>> If we use a quoting structure similar to Perl6, then we future proof the grammar to accommodate regular expression literals (and multi-line regular expression literals) later. It also gives us the possibility for support for fine-grain control over escaping and interpolation.
>>
>> Wouldn’t the natural regex literal syntax be to enclose them in /’s, e.g. /foo*/ ?
>>
>> I don’t see how this proposal conflicts with that.
>>
>> -Chris
>>
>
More information about the swift-evolution
mailing list