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

example suggestion: How to do multiline strings in Roc? #121

Open
Anton-4 opened this issue Dec 5, 2023 · 2 comments
Open

example suggestion: How to do multiline strings in Roc? #121

Anton-4 opened this issue Dec 5, 2023 · 2 comments

Comments

@Anton-4
Copy link
Collaborator

Anton-4 commented Dec 5, 2023

Inspiration: https://gist.github.com/rtfeldman/35846b441ba011fe3bfef31890591223#syntax

@dotslashbit
Copy link
Contributor

Clarifying question, this is the kind of example you are expecting right?

greeting = "Hello Sahil\nThis is a multi-line string"

@lukewilliamboswell
Copy link
Collaborator

I think more like

query =
    """
    UPDATE sessions
    SET user_id = \(Num.toStr user.id)
    WHERE session_id = \(Num.toStr sessionId);
    """

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

No branches or pull requests

3 participants