• 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: Swift question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Swift question


  • Subject: Re: Swift question
  • From: Greg Weston <email@hidden>
  • Date: Wed, 04 Jun 2014 19:10:34 -0400

> Much nicer.. but the same outcome - warning based on the value of hammers. Same, even if I use a variable to load hammers, as Ronald suggested.

The problem with this test is that the compiler is smart enough to see that within the snippet the value of hammers is deterministic. Good for real projects. Troublesome for playing and simple test cases.
 _______________________________________________
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


  • Follow-Ups:
    • Re: Swift question
      • From: Robert Lockstone <email@hidden>
  • Prev by Date: Re: Swift JIT
  • Next by Date: Re: Swift JIT
  • Previous by thread: Re: Swift question
  • Next by thread: Re: Swift question
  • Index(es):
    • Date
    • Thread