Skip to content

Add convenience initializer for BinaryOperatorExpr #344

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

Conversation

kimdv
Copy link
Contributor

@kimdv kimdv commented Nov 29, 2021

@kimdv kimdv force-pushed the kimdv/add-convenience-initializer-for-binary-operator-expr branch 5 times, most recently from 5fbdf7c to bb72607 Compare November 29, 2021 20:14
@kimdv kimdv changed the title Add convenience initializer for binary operator expr Add convenience initializer for BinaryOperatorExpr Nov 29, 2021
@kimdv kimdv force-pushed the kimdv/add-convenience-initializer-for-binary-operator-expr branch 2 times, most recently from 4fa7cca to 43692af Compare November 29, 2021 20:23
@kimdv kimdv marked this pull request as ready for review November 29, 2021 20:40
}
}

extension BinaryOperatorExpr: ExpressibleByStringLiteral {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually need the ExpressibleByStringLiteral conformance? IIUC we should be able to use Strings for binary operators in all relevant places because we have String: ExpressibleAsBinaryOperatorExpr.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's possible yes.

@kimdv kimdv requested a review from ahoppen December 1, 2021 18:48
@kimdv kimdv force-pushed the kimdv/add-convenience-initializer-for-binary-operator-expr branch from 43692af to 0c05205 Compare December 1, 2021 18:50
@kimdv kimdv force-pushed the kimdv/add-convenience-initializer-for-binary-operator-expr branch from 0c05205 to a6f06ed Compare December 1, 2021 18:53
@kimdv
Copy link
Contributor Author

kimdv commented Dec 1, 2021

swiftlang/swift#40355

@swift-ci Please test

@kimdv kimdv merged commit 0d4f464 into swiftlang:main Dec 2, 2021
@kimdv kimdv deleted the kimdv/add-convenience-initializer-for-binary-operator-expr branch December 2, 2021 06:39
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

Successfully merging this pull request may close these issues.

2 participants