Polymorphic array mapping (are you interested in a PR)
- Dominant language
- Swift
- Stars
- 4.3k
- Forks
- 677
- PR merge metrics
- No merged PRs in 30d
Description
Hi. Interested to know if this is something you'd like to add.
i.e: the ability to write an array of various types (subclasses), and read it back in. All using the same <- operator.
I've written an implementation that works for my own needs, and would be happy to make it a bit more 'tidy' and provide as a PR if there's any interest.
It's only downside is that the reconstruction insn't 100% automatic. It requires a specific closure to instantiate the correct objects upon hydration. Perhaps someone better @ swift that I can make that more general.
Contributor guide
No contributing guide indexed for this repository
Research direction
No files or tests are identified in the issue. Start by reviewing the existing `<-` mapping and hydration behavior, then clarify the desired closure-based reconstruction approach; done means an agreed implementation can handle arrays containing subclass instances.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- data
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100