[swift-users] Initializing an empty dictionary

Dmitri Gribenko gribozavr at gmail.com
Wed Mar 9 13:03:46 CST 2016


On Wed, Mar 9, 2016 at 11:00 AM, James Campbell <james at supmenow.com> wrote:
> Hey Chris already solved this for 2.2, it will now give you a fix-it to use
> [:]. So no need to file a bug :)

I was seeing buggy behavior on master.  And, the non-shorthand syntax
should still work.

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-users mailing list