Re: Bindings in Swift
Re: Bindings in Swift
- Subject: Re: Bindings in Swift
- From: Quincey Morris <email@hidden>
- Date: Sun, 10 Aug 2014 09:56:58 -0700
On Aug 10, 2014, at 06:46 , Roland King <email@hidden> wrote:
> And if anyone thinks Swift is all simplicity and scripty loveliness I came across this StackOverflow question and answer today. It will be a while before I entirely understand it, it will be a long while before I could attempt to reproduce it.
Deliberately missing your point, I’d say the problem is that Swift has two kinds of generics — one for class types and one for protocols. The concepts are fairly easy to grasp individually, but become horrendously complex when allowed to interact. Personally, I regard this as a bug in the language design.
OTOH, C++ has historically proved that generics (i.e. templates) *alone* can become horrendously complex. Even on this list, the most common C++ question is, “Why won’t my template instantiate properly?”.
One of the joys of Obj-C has always been that it isn’t very ambitious in the language-features department. Remember the fuss when property syntax was introduced?
_______________________________________________
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