On Fri, May 29, 2009 at 5:32 AM, Slava Pestov <sl...@factorcode.org> wrote: > On Fri, May 29, 2009 at 4:25 AM, Phil Dawes <p...@phildawes.net> wrote: >> Shall I stick with the combinator or do you still prefer the descriptors? > > To be honest, I don't feel strongly one way or another. I haven't had > an opportunity to use the CSV library in a real setting yet. So I was > just throwing another approach out there. In the end, it is up to you; > both configuration objects and dynamic variables are two fine > approaches. >
Have we noticed any principles for when/how to use dynamics, tuples, and combinators together to solve problems? For instance, after some false starts I think I've worked out that I want my little data munger to look like this: P" apath" parse-mibor [ "MlsNum" by-name do-stuff "AnotherCol" by-name do-more whatever ] with-mibor-bulk-each-record with-mibor-bulk will create a new namespace with two variables, one is an assoc with column names mapped to column indexes (grabbed from the first array) and the other is an assoc with the current record array. by-name will consult those two variables and leave the current record's data for that field on the stack. Any thoughts? -- Darrin ------------------------------------------------------------------------------ Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT is a gathering of tech-side developers & brand creativity professionals. Meet the minds behind Google Creative Lab, Visual Complexity, Processing, & iPhoneDevCamp as they present alongside digital heavyweights like Barbarian Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com _______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk