On Thu, 2014-06-05 at 07:13 +0000, ponce via Digitalmars-d wrote: > On Thursday, 5 June 2014 at 04:35:18 UTC, Russel Winder via > Digitalmars-d wrote: > > > > I think Pike, Cox, et al. disagree; for them exceptions are > > only a > > termination mechanism and return codes are the way of > > communicating. If > > Swift has no exceptions, then Apple must be following the Go > > model > > rather than the D, Python, (C++ ?), etc. one. > > > > It seems interesting to note that for M# it's the exact reverse, > exceptions are for recoverable errors and crashing is for > unrecoverable ones (I lost the link to the reference).
This is very much the Java model: exceptions are for exceptional events that can be handled or not. In Python of course exceptions are just control flow. -- Russel. ============================================================================= Dr Russel Winder t: +44 20 7585 2200 voip: sip:[email protected] 41 Buckmaster Road m: +44 7770 465 077 xmpp: [email protected] London SW11 1EN, UK w: www.russel.org.uk skype: russel_winder
