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

RFC: Block String #327

Merged
merged 2 commits into from
Nov 30, 2017
Merged

RFC: Block String #327

merged 2 commits into from
Nov 30, 2017

Commits on Nov 29, 2017

  1. RFC: Multi-line String

    This RFC adds a new lexed token, the multi-line string, similar to that found in Python and Scala.
    
    A multi-line string starts and ends with a triple-quote:
    
    ```
    """This is a triple-quoted string
    and it can contain multiple lines"""
    ```
    
    Multi-line strings are useful for typing literal bodies of text where new lines should be interpretted literally. In fact, the only escape sequence used is `\"""` and `\` is otherwise allowed unescaped. This is beneficial when writing documentation within strings which may reference the back-slash often:
    
    ```
    """
    In a multi-line string \n and C:\\ are unescaped.
    """
    ```
    
    The primary value of multi-line strings are to write long-form input directly in query text, in tools like GraphiQL, and as a prerequisite to another pending RFC to allow docstring style documentation in the Schema Definition Language.
    leebyron committed Nov 29, 2017
    Configuration menu
    Copy the full SHA
    3bad767 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2017

  1. Configuration menu
    Copy the full SHA
    979a1f2 View commit details
    Browse the repository at this point in the history