There is no evaluation at all with :>. All values have to be on the
stack and :> does the binding only. In some sense, you decide the
evaluation order in the word generate-x-y-z.

On Thu, Oct 29, 2009 at 11:20 AM, Adam <[email protected]> wrote:
> Reading the older docs for [let and [let* I see that the [let* form
> evaluates the bindings sequentially rather than in parallel.
>
> What order are the :> bindings evaluated?
>
> I'm just curious as I haven't used the :> form yet.
>
> On Wed, Oct 28, 2009 at 2:34 PM, Joe Groff <[email protected]> wrote:
>> As I threatened to a few days ago, I've gone ahead and streamlined the
>> locals vocabulary. Instead of having three different binding forms
>> ([let | x [ y ] | ], [let* | x [ y ] | ], and y :> x), we now only
>> have :> . [let ] remains as a way to establish a lexical scope in a :
>> definition or toplevel form. So any code you have that looked like this:
>>
>> [let | x [ generate-x ] y [ generate-y ] z [ generate-z ] | do-stuff-
>> with-x-y-and-z ]
>>
>> can now look like this:
>>
>> [let generate-x :> x generate-y :> y generate-z :> z do-stuff-with-x-y-
>> and-z ]
>>
>> If you're inside a :: definition, the [let ] can go away completely.
>>
>> But the hand that taketh away also giveth: You can now bind multiple
>> values in left to right order with a single :> . Where you used to
>> have to say this:
>>
>> generate-multiple-values :> c :> b :> a
>>
>> You can now instead say:
>>
>> generate-multiple-values :> ( a b c )
>>
>> I've updated all the uses of [let ], [let* ], and :> in the Factor git
>> repo to use the new features.
>>
>> -Joe
>>
>> ------------------------------------------------------------------------------
>> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
>> is the only developer event you need to attend this year. Jumpstart your
>> developing skills, take BlackBerry mobile applications to market and stay
>> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
>> http://p.sf.net/sfu/devconference
>> _______________________________________________
>> Factor-talk mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>



-- 
Jon Harper

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to