Why append(contentsOf:) is unavailable? #31
-
In my project, several people are using this helper, really curious about why making it unavailable. Can we use this implementation?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
There has to be a reason right? seems it takes more lines to write the warning than the implementation |
Beta Was this translation helpful? Give feedback.
-
We originally left it off because it seemed unsafe to so easily ignore the fact that some elements may be inserted and some may not. However, it appears that |
Beta Was this translation helpful? Give feedback.
We originally left it off because it seemed unsafe to so easily ignore the fact that some elements may be inserted and some may not. However, it appears that
OrderedSet
implements this method, so for the sake of consistency I think we could implement it, as well. Want to submit a PR?