[Home] [By Thread] [By Date] [Recent Entries]
> I disagree that this specifies the order of execution. > > >> example 3: for i in 1..length(array) yield function(a[i]) > > The results must be in order but the execution need not. > Well, that depends on the semantics of the language in which it's written, which we don't know. Many procedural languages have syntax a bit like this, and allow function() to have side-effects such as changing global variables, and in such a case it's quite plausible that the language semantics would require sequential execution. On the other hand many functional languages also have similar constructs, and don't allow function() to have side-effects, and don't mandate sequential execution. Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] |

Cart



