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

[SR-6869] Attributes should support multi-line strings #49418

Open
dabrahams opened this issue Jan 30, 2018 · 2 comments
Open

[SR-6869] Attributes should support multi-line strings #49418

dabrahams opened this issue Jan 30, 2018 · 2 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself feature A feature request or implementation

Comments

@dabrahams
Copy link
Collaborator

Previous ID SR-6869
Radar None
Original Reporter @dabrahams
Type Bug
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Bug, LanguageFeatureRequest
Assignee None
Priority Medium

md5: bceb8cf232c18154cad6bb45f1647820

Issue Description:

Most string literals can be line-wrapped with `+`, but not the literals used in attributes. A project that has a hard line-length limit will have to make an exception and, probably, put it into the project's linting tools.

@belkadan
Copy link
Contributor

String literals cannot be line-wrapped with + unless the implementing type is Swift.String. I'm not sure we want to make this a general policy.

@dabrahams
Copy link
Collaborator Author

The use of multiline strings to handle the use case came up in the core team yesterday; it's a much better solution.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself feature A feature request or implementation
Projects
None yet
Development

No branches or pull requests

2 participants