Re: Need for Swift
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