[OT] Apple introduces Swift as Objective-C sucessor

Russel Winder via Digitalmars-d digitalmars-d at puremagic.com
Wed Jun 4 21:35:05 PDT 2014


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:russel.winder at ekiga.net
41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder



More information about the Digitalmars-d mailing list