• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Need for Swift
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need for Swift


  • Subject: Re: Need for Swift
  • From: Jean-Daniel via Cocoa-dev <email@hidden>
  • Date: Tue, 15 Oct 2019 22:21:19 +0200

> Le 15 oct. 2019 à 04:43, Alex Zavatone via Cocoa-dev
> <email@hidden> a écrit :
>
>
>
>> On Oct 14, 2019, at 1:25 PM, Carl Hoefs via Cocoa-dev
>> <email@hidden> wrote:
>>
>> The group that likes Obj-C sees Swift as being "arbitrarily syntactical"
>> with the syntax of the language getting in the way of programming. (There is
>> a third group that likes both languages, but it is very small.)
>
> I am in this group.  The syntax of Swift just feels so arbitrary and to look
> deeper to solve more problems… if it weren’t for those compiler messages, it
> would be a mess.  I, for one shuddered when I saw “if let x = y” being
> something that people are expected to use and that damn, “you must unwrap
> this optional”, simply ends up making things that were simple in Objective-C,
> completely cumbersome in Swift.

Nobody force you to use "if let ».

If you want to write error prone code like in Obj-C, just use optional
chaining. This is exactly the same than dispatching message without checking
for nil before and will works as you like to do in Obj-C.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Need for Swift (From: Kirk Kerekes via Cocoa-dev <email@hidden>)
 >Re: Need for Swift (From: Richard Charles via Cocoa-dev <email@hidden>)
 >Re: Need for Swift (From: Laurent Daudelin via Cocoa-dev <email@hidden>)
 >Re: Need for Swift (From: Pier Bover via Cocoa-dev <email@hidden>)
 >Re: Need for Swift (From: Charles Srstka via Cocoa-dev <email@hidden>)
 >Re: Need for Swift (From: Carl Hoefs via Cocoa-dev <email@hidden>)
 >Re: Need for Swift (From: Alex Zavatone via Cocoa-dev <email@hidden>)

  • Prev by Date: Re: Need for Swift
  • Next by Date: Re: Need for Swift
  • Previous by thread: Re: Need for Swift
  • Next by thread: Re: Need for Swift
  • Index(es):
    • Date
    • Thread