Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplify multi-line strings #23

Closed
JimmyCushnie opened this issue Jan 29, 2020 · 3 comments
Closed

simplify multi-line strings #23

JimmyCushnie opened this issue Jan 29, 2020 · 3 comments
Labels
feature/enhancement New feature or request

Comments

@JimmyCushnie
Copy link
Owner

JimmyCushnie commented Jan 29, 2020

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.

@JimmyCushnie JimmyCushnie added the feature/enhancement New feature or request label Jan 29, 2020
@pipe01
Copy link
Contributor

pipe01 commented Jan 29, 2020 via email

@JimmyCushnie
Copy link
Owner Author

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.

@JimmyCushnie
Copy link
Owner Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants