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

Language idea: More advanced string literals #34

Closed
alexrp opened this issue Feb 20, 2023 · 2 comments
Closed

Language idea: More advanced string literals #34

alexrp opened this issue Feb 20, 2023 · 2 comments
Labels
area: language Issues related to the design of the language. type: feature Issues that are classified as feature requests.
Milestone

Comments

@alexrp
Copy link
Sponsor Member

alexrp commented Feb 20, 2023

We need to come up with a design for more advanced string literals. In particular, string literals that can span multiple lines are frequently useful.

String interpolation is out of scope for this.

@alexrp alexrp added state: deliberation Issues that require considerable deliberation and/or discussion before a resolution can be found. type: feature Issues that are classified as feature requests. area: language Issues related to the design of the language. labels Feb 20, 2023
@alexrp alexrp added this to the v1.0 milestone Feb 20, 2023
@alexrp alexrp self-assigned this Feb 20, 2023
@alexrp
Copy link
Sponsor Member Author

alexrp commented Feb 22, 2023

I think we might just steal C#'s relatively new raw string literals:

Not sure if verbatim string literals are useful enough to justify inclusion in some form. Need to think on that.

@alexrp
Copy link
Sponsor Member Author

alexrp commented Mar 5, 2023

We will basically copy C#'s approach here.

Approved for 1.0.

@alexrp alexrp closed this as completed Mar 5, 2023
@alexrp alexrp removed the state: deliberation Issues that require considerable deliberation and/or discussion before a resolution can be found. label Mar 5, 2023
@alexrp alexrp removed their assignment Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: language Issues related to the design of the language. type: feature Issues that are classified as feature requests.
Development

No branches or pull requests

1 participant