• 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: Some non-obvious Swift goodies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some non-obvious Swift goodies


  • Subject: Re: Some non-obvious Swift goodies
  • From: Tim Carpenter <email@hidden>
  • Date: Sat, 07 Jun 2014 08:22:11 +0800

Also known as lazy evaluation.

Just because you are passing a function, does not mean the receiver will always want to know the answer.

Tim

Sent from my Nokia 6310i

> On 6 Jun, 2014, at 5:52, Scott Ribe <email@hidden> wrote:
>
>> On Jun 5, 2014, at 3:00 PM, Jens Alfke <email@hidden> wrote:
>>
>> Deferred evaluation does look extremely powerful, but I can imagine it’s also potentially very dangerous if misused, in that it can make the semantics of the calling code very non-obvious.
>
> Yes. Note that the feature comes from functional languages, where it does NOT have the problems you brought up, because the deferred functions do not have side effects.
>
> --
> Scott Ribe
> email@hidden
> http://www.elevated-dev.com/
> (303) 722-0567 voice
>
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >Some non-obvious Swift goodies (From: Jens Alfke <email@hidden>)
 >Re: Some non-obvious Swift goodies (From: Ron Hunsinger <email@hidden>)
 >Re: Some non-obvious Swift goodies (From: Jens Alfke <email@hidden>)
 >Re: Some non-obvious Swift goodies (From: Scott Ribe <email@hidden>)

  • Prev by Date: Do Archive Pre-Actions work?
  • Next by Date: CocoaPods
  • Previous by thread: Re: Some non-obvious Swift goodies
  • Next by thread: Re: Some non-obvious Swift goodies
  • Index(es):
    • Date
    • Thread