> Le 15 oct. 2019 à 04:43, Alex Zavatone via Cocoa-dev > <cocoa-dev@lists.apple.com> a écrit : > > > >> On Oct 14, 2019, at 1:25 PM, Carl Hoefs via Cocoa-dev >> <cocoa-dev@lists.apple.com> 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 (Cocoa-dev@lists.apple.com) 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: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com