• 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: Optionals? A better option!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Optionals? A better option! (From: William Squires <email@hidden>)

  • Prev by Date: Re: How to draw a NSView on top of a WebView and don't get overriden trying
  • Next by Date: Re: Generate a _CFURLAliasData entry for Finder toolbar
  • Previous by thread: Re: Optionals? A better option!
  • Next by thread: Re: Optionals? A better option!
  • Index(es):
    • Date
    • Thread