[swift-users] Should a queue be value type or reference type?

褚 晓敏 mirrorinf at icloud.com
Mon Jul 25 09:10:59 CDT 2016


I'm wondering the type of queues. If I want it to be like the dispatch queues, it  should be reference type since we care about the object identity. But if I view it simply as a collection of elements, it should be value type. So what should it be, according to API design guidelines?

Schurin Chu


More information about the swift-users mailing list