swiftlang / swiftlang/swift-java
Java2Swift: Generalize conformances of Java collection types to Swift sequence protocols
Open
Nobody has claimed this yet.
feature:wrap-java
good first issue
- Dominant language
- Swift
- Stars
- 1.2k
- Forks
- 123
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 16
Description
The JavaKitCollection module has a conformance of java.util.List to Swift's Sequence protocol. We should find a way to expand and generalize this so all of the various Java collection types can be treated as Swift sequences.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Sources/JavaKitCollection/List+Sequence.swift and inspect how java.util.List currently conforms to Swift's Sequence protocol. Trace the other Java collection types and existing collection abstractions, then define a shared conformance approach; done means the relevant Java collection types can be used as Swift sequences.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, swift
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100