[swift-users] Lazy expression is ambiguous?

Quinn "The Eskimo!" eskimo1 at apple.com
Mon Sep 12 02:57:12 CDT 2016


On 12 Sep 2016, at 08:53, Quinn The Eskimo! via swift-users <swift-users at swift.org> wrote:

> On 12 Sep 2016, at 08:46, Rick Mann <rmann at latencyzero.com> wrote:
> 
>> I had assumed lazy worked like static, which I understand uses dispatch_once under the hood.
> 
> Correct.

Re-reading the above I realise that it was ambiguous.  Let’s try that again.

                   *                   *                   *

On 12 Sep 2016, at 08:46, Rick Mann <rmann at latencyzero.com> wrote:

> I had assumed lazy worked like static …

No, alas.

> which I understand uses dispatch_once under the hood.

Your understanding of `static` is correct.

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware




More information about the swift-users mailing list