You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SR-1009 Add methods to an Array containing a specific type
Issue Description:
From the Generics Manifesto:
Currently, a constrained extension cannot use a same-type constraint to make a type parameter equivalent to a concrete type. For example:
extensionArraywhere Element ==String{func makeSentence()->String{// uppercase first string, concatenate with spaces, add a period, whatever}}
This is a highly-requested feature that fits into the existing syntax and semantics. Note that one could imagine introducing new syntax, e.g., extending Array<String>, which gets into new-feature territory: see the section on "Parameterized extensions".
The text was updated successfully, but these errors were encountered:
Additional Detail from JIRA
md5: 748721df6513bea682c4c047b386d207
duplicates:
Issue Description:
From the Generics Manifesto:
Currently, a constrained extension cannot use a same-type constraint to make a type parameter equivalent to a concrete type. For example:
This is a highly-requested feature that fits into the existing syntax and semantics. Note that one could imagine introducing new syntax, e.g., extending Array<String>, which gets into new-feature territory: see the section on "Parameterized extensions".
The text was updated successfully, but these errors were encountered: