Re: Better string constants

Alfredo Beaumont <[email protected]>
Newsgroups gmane.comp.lang.dylan.gwydion.devel
Message-ID <CADVnqbiQg5FWgk1v37hekfCn_ghtRbwp49692RCGAfvRgn1t8A@mail.gmail.com>
2013/2/28 Carl Gay <[email protected]>:
> On Thu, Feb 28, 2013 at 9:52 AM, Alfredo Beaumont
> <[email protected]> wrote:
>> An alternative syntax could be provided to avoid abusing escaping:
>>
>> """
>> A: {
>>        a: "a"
>>        b: "b"
>>        c: "c"
>> }
>> """
>>
>> If coil works as shown by bruce i don't even think the alternative
>> syntax is too important.
>> I also don't think a raw syntax is worth a new syntax.
>
>
> I'm confused.  It looks like you're suggesting that """ would be used for
> raw strings.

No, """ would be an alternative syntax for ", just to avoid the need
for abusing escaping double quotes:

"#(\"a\",\"b\",\"c\")" = """#("a","b","c")"""

but still:

"\\n" = """\\n"""

I don't think a raw syntax is worth the effort, since I don't think
they are used too often, but i might be wrong.
_______________________________________________
hackers mailing list
[email protected]
https://lists.opendylan.org/mailman/listinfo/hackers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.