On Thu, Dec 10, 2015 at 10:06 AM, Pelaia II, Tom <[email protected]> wrote:
> But isn’t that really a problem with that use case rather than the
> concurrent dictionary itself? There are a lot of bad things one can do with
> almost any code. For example, one can naively use the standard library
> dictionary in subtle, unsafe ways with concurrency and get into trouble.

The concurrency considerations and safety conditions for Dictionary
are the same as for Int, so I don't think there is anything subtle
here.

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 <[email protected]>*/
_______________________________________________
swift-users mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to