[swift-evolution] Pitch: Remove `NonObjectiveCBase` and replace `isUniquelyReferenced` by `isUniquelyReferencedUnsafe`

Dmitri Gribenko gribozavr at gmail.com
Sat Jul 16 15:21:46 CDT 2016


On Sat, Jul 16, 2016 at 12:47 PM, Arnold Schwaighofer via
swift-evolution <swift-evolution at swift.org> wrote:
> ## Proposed solution
>
> Replace `isUniquelyReferenced<T : NonObjectiveCBase>` by
> `isUniquelyReferencedUnsafe<T: AnyObject>` and remove the `NonObjectiveCBase`
> class from the standard library.

Thank you for this proposal!

For presentation and clarity, could you show the full family of
`isUniquely*` functions in the design section, including those
functions that you are not proposing to change?  This will make it
easier to see what choices users will get.  It would be also great to
include the API of similar ManagedBuffer and ManagedBufferPointer
APIs, if any exist.

Dmitri

-- 
main(i,j){for(i=2;;i++){for(j=2;j<i;j++){if(!(i%j)){j=0;break;}}if
(j){printf("%d\n",i);}}} /*Dmitri Gribenko <gribozavr at gmail.com>*/


More information about the swift-evolution mailing list