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

Suggestion: Support multiline strings without backslash escapes #1233

Open
thomashoneyman opened this issue May 23, 2023 · 1 comment
Open

Comments

@thomashoneyman
Copy link
Contributor

Is your enhancement request related to a problem? Please describe.

I find it a little noisy to parse multi-line documentation strings where line breaks use backslash escapes, as seen here:

@doc 
  "My documentation string that \
  \spans multiple lines \
  \before ending"

Describe the solution you'd like

I'd like to see multi-line string support as seen, for example, in PureScript, where a triple-quote string prevents special parsing of escaped symbols. The above could be written as:

@doc
  """
  My documentation string that
  spans multiple lines
  before ending.
  """

This form is also seen in, say, Python's support for multi-line docstrings (Python allows this form in general, not just in docstrings).

@jwiegley
Copy link
Contributor

I enjoy having the option of multiline strings also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants