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

Reply via email to