Re: Optionals? A better option!
Re: Optionals? A better option!
- Subject: Re: Optionals? A better option!
- From: Uli Kusterer <email@hidden>
- Date: Sat, 16 May 2015 12:21:10 +0200
On 14 May 2015, at 18:50, William Squires <email@hidden> wrote:
> Swift shows promise, but - like all computer languages - it's a trade-off between generated code side, and the amount of abstraction the language presents to those using it, making it easier to turn ideas into code. Making a (more abstract) language unnecessarily complicated with '?' and '!' doesn't seem to be going in the right direction, while making string concatenation less complicated with an overloaded '+' operator does seem to be going in the right direction (now, if we can only make extracting substrings less complicated, that'll be even better! It's currently a pain-in-the-compiler-backend!)
If you want a fun, concise argument against overloading the same operator with different meanings:
https://www.destroyallsoftware.com/talks/wat
Admittedly, that’s exacerbated by using a language with transparent type conversion, but it’s still a bad idea.
Cheers,
-- Uli Kusterer
“The Witnesses of TeachText are everywhere...”
http://zathras.de
_______________________________________________
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