[Swift-devel] serialised execution of @function and operator arguments

Ben Clifford benc at hawaga.org.uk
Mon May 18 02:27:29 CDT 2009


On Sun, 17 May 2009, Michael Wilde wrote:

> By 'serialized', I assume you mean that if the @function has multiple args,
> they are evaluated one at a time? And the same for any binary (2-arg)
> operator?

yes

> And is *each* arg evaluation done serially, all the way down to the leaves of
> the evaluatiion?

yes

> By "confuse or upset" you mean it will confuse users who would expect all the
> args to be evaluated in parallel, when the args are expressions that could
> directly or indirectly involve an app() execution?

yes

> Is this easy, or hard, to fix? (Just curious; doesnt seem urgent till it
> causes problems for a real application).

seems pretty easy - likely that will happen as a side-effect of my 
provenance work (it seems to be working in my dev tree already).

I commented mostly because I wasn't expecting it.

-- 




More information about the Swift-devel mailing list