Skip to content

Make String conform to ExpressibleAs protocols #335

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

Merged

Conversation

kimdv
Copy link
Contributor

@kimdv kimdv commented Nov 10, 2021

This is some ideas I got, while I was playing around with #331 .
Not sure if it's correct to make some if this assumptions I make in the StringConvenienceInitializers.swift?

I think we can make those assumptions because it is simple types.

But let me hear if there is anything!
The test cases are getting more and more clean and easy to read 🎉

Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

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

Nice. This is great. From a quick glance it looks to me like there are a few unrelated changes in here that were caused by a new protocolMap.py in the main swift repo.

@ahoppen
Copy link
Member

ahoppen commented Nov 12, 2021

swiftlang/swift#40128

@swift-ci Please test

@ahoppen ahoppen self-assigned this Nov 12, 2021
@kimdv kimdv changed the title Make String conform to ExpressibleAs protocols Make String conform to ExpressibleBy protocols Nov 15, 2021
@kimdv
Copy link
Contributor Author

kimdv commented Nov 15, 2021

Will update code and rebase when #337 is merged

@kimdv kimdv force-pushed the kimdv/conform-string-to-expressible-as-protocols branch 2 times, most recently from 7fd2710 to 889c765 Compare November 15, 2021 17:30
@kimdv
Copy link
Contributor Author

kimdv commented Nov 15, 2021

I have rebased this and swiftlang/swift#40128
Would you mind to trigger CI 🚀

@kimdv kimdv mentioned this pull request Nov 15, 2021
@ahoppen
Copy link
Member

ahoppen commented Nov 16, 2021

@kimdv If you want, I would encourage you to request commit access to Swift (https://www.swift.org/contributing/#commit-access). I think you have accumulated more than the encouraged 5 non-trivial pull request by now. 😉 With commit access you’ll be able to trigger CI yourself.

@ahoppen
Copy link
Member

ahoppen commented Nov 16, 2021

swiftlang/swift#40128

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 8a51c06

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 8a51c06

@kimdv
Copy link
Contributor Author

kimdv commented Nov 16, 2021

Will rebase when #334 is merged.

@kimdv kimdv force-pushed the kimdv/conform-string-to-expressible-as-protocols branch 3 times, most recently from 9a134cc to cfb7d95 Compare November 17, 2021 12:31
@kimdv kimdv force-pushed the kimdv/conform-string-to-expressible-as-protocols branch from cfb7d95 to 674431e Compare November 17, 2021 12:34
@kimdv kimdv requested a review from ahoppen November 17, 2021 12:37
@ahoppen ahoppen changed the title Make String conform to ExpressibleBy protocols Make String conform to ExpressibleAs protocols Nov 17, 2021
@ahoppen
Copy link
Member

ahoppen commented Nov 17, 2021

swiftlang/swift#40128

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 889c765

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 889c765

@kimdv kimdv merged commit e73e11b into swiftlang:main Nov 17, 2021
@kimdv kimdv deleted the kimdv/conform-string-to-expressible-as-protocols branch November 17, 2021 16:36
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.

3 participants