News for hackers. Stuff that matters.
Re:Go for Objective-C developers by pornel on Wednesday February 12, 2014 @04:26PM (#7227452)
I don't feel like I've learned much about Go from this article.

    make(chan bool, 1)
what is that 1 for? Why is it not using constructor sytnax shown earlier? (`Chan{bool}` or `BoolChan{1}`?)

`go function` is nice, but in ObjC there's `dispatch_async()` and `NSOperationQueue`. Go does some magic with green threads, segmented stacks and whatnot, but the article doesn't elaborate.

And for an Objective-C developer Go's lack of proper interoperability with Cocoa is disappointing:

http://stackoverflow.com/questions/6322194/cocoa-bindings-fo...

BTW:

   (CGRect){0, 0, 320, 480}
is valid in ObjC (doesn't apply to classes though).
Re:Go for Objective-C developers by mergesort on Wednesday February 12, 2014 @04:40PM (#7227534)
As for (CGRect){0, 0, 320, 480}, it is indeed valid, but it's a lot nicer to have a consistent syntax instead of mixing C with Objective-C.
Re:Go for Objective-C developers by micampe on Wednesday February 12, 2014 @05:19PM (#7227759)
There is no mixing. Objective-C is a superset of C, therefore C syntax is part of the Objective-C language.
Re:Go for Objective-C developers by mergesort on Wednesday February 12, 2014 @05:35PM (#7227859)
Mixing in the sense that ABAddressBook is a C based API, with no Cocoa wrapper, like how CGRect is a struct, not an class.