[OT] Apple introduces Swift as Objective-C sucessor

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Tue Jun 3 13:26:51 PDT 2014


On 2014-06-03 01:01, deadalnix wrote:

> How do they do error handling ?

Objective-C does support exceptions, but libraries like Cocoa avoids 
throwing exceptions and leave those to the user (developer). Instead it 
usually returns a bool to indicate success or failure and then provides 
an NSError instance via an out parameter.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list