On Wed, 2014-06-04 at 14:21 -0700, Walter Bright via Digitalmars-d wrote: > On 6/3/2014 2:44 PM, Remo wrote: > > No exceptions (!) so this is at least something that this > > language do better as C++ and D :D > > Not everyone think that exceptions are necessary or there is no > > other way to handle errors. > > Exceptions make ARC expensive, so this may be a reasonable decision for Swift. > > Exceptions and GC go together like chocolate and coffee :-)
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. I am still trying to work out what Rust conditions really are: they language of exceptions is used but there is no stack unwinding. -- 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
