Skip to content

Conversation

@natecook1000
Copy link
Member

This PR implements the changes approved in SE-154 and SE-165:

  • Custom Keys and Values collections for Dictionary
  • Two sequence-based Dictionary initializers
  • Merging methods for Dictionary
  • Capacity checking and reserving for Dictionary and Set
  • Type-specific filter(_:) methods for Dictionary and Set
  • A mapValues(_:) method for Dictionary
  • A Dictionary(grouping:by:) initializer

A variety of enhancements from SE-154 and SE-165:

- Custom Keys and Values collections for Dictionary
- Two sequence-based Dictionary initializers
- Merging methods for Dictionary
- Capacity checking and reserving for Dictionary and Set
- Type-specific filter(_:) methods for Dictionary and Set
- A mapValues(_:) method for Dictionary
- A grouping Dictionary initializer
@natecook1000
Copy link
Member Author

@swift-ci Please smoke test

@natecook1000
Copy link
Member Author

🤔 test/Constraints/bridging.swift is segfaulting for me locally, too. @DougGregor are you the right person to cc on this?

@DougGregor
Copy link
Member

Yeah, I guess that'd be me. Just pull your changes and see what goes wrong with that test? Do you have a backtrace handy?

@natecook1000
Copy link
Member Author

I compile in Release mode so I'm not sure this has everything you need, but: https://gist.github.com/natecook1000/31ca8bf769230a6c9da25aa08606c24f

@DougGregor
Copy link
Member

Oooh, the diagnostics machinery is doing a substitution that SubstitutionMap can't handle... but probably should. I'm looking at it now.

@DougGregor
Copy link
Member

@natecook1000 , #9106 fixes the crash. You should be good to go once that gets merged.

@DougGregor
Copy link
Member

Of course, I screwed up #9106. I'll kick off a retest of this PR once I get my act together.

@DougGregor
Copy link
Member

@swift-ci Please smoke test

@DougGregor
Copy link
Member

@swift-ci please clean smoke test Linux

1 similar comment
@DougGregor
Copy link
Member

@swift-ci please clean smoke test Linux

@DougGregor DougGregor merged commit e90b7f9 into swiftlang:master Apr 29, 2017
@DougGregor
Copy link
Member

@natecook1000 could you open a PR with a ChangeLog entry for this?

@aschwaighofer
Copy link
Contributor

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