JimmyCushnie / JECS

Jimmy's Epic Config System

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simplify multi-line strings

JimmyCushnie opened this issue · comments

Current way:

MultiLineString: """
    here is line one
    here is line two
    """

There's really no need for the triple quotes. Desired:

MultiLineString:
    here is line one
    here is line two

Complications with this: the parser needs to use a more advanced method of detecting a multi-line string, so that it knows not to fail when those lines don't have a : in them.

That's what I thought as well when I designed it. Tonight I've finally actually started using files with multi-line strings, and my initial impression is that the triple quotes are annoying noise.

It's also worth noting that you'd still be able to tell for certain that there's a string there, since this is the only scenario in which lines of SUCC do not contain a : to separate the key from the data.

I'll keep working with these files and see if the triple quotes grow on me.

I've decided I like multi-line strings the way they are.