Hey Brian, you are right that the problem could be solved using a convention of always using the method name as the argument name, or even deciding on a single generic argument name like "Value". But imagine if you were building a shared object that will be used by other members of your team, in my case a generic data object that can either pull from the variables.instancescope, or, if so defined, can use a custom function to set the value. Well you could teach everyone a convention/methodology to achieve this, but why not make it as intuitive as possible and just send a single un-named argument, as any setter method expects. That way your coders don't have to remember random syntax and can focus on the core of the problem. It just makes the user experience better.
On an un-related side-note, I think this is the first time I've noticed TAG syntax not being able to accomplish something that SCRIPT syntax can - usually its the other way around. Baz On 10/22/07, Brian Kotek <[EMAIL PROTECTED]> wrote: > > Interesting, I hadn't really run into a situation like that before! Most > of my dynamic method calls tend to be autopopulating beans, or calling a > method and passing an argumentCollection. Hadn't gotten into chains of > dynamic method calls (but maybe I will now heh). > > On 10/22/07, Sean Corfield <[EMAIL PROTECTED]> wrote: > > > > > On 10/22/07, Brian Kotek <[EMAIL PROTECTED]> wrote: > > > I'm still a bit fuzzy though on why you would be calling a method > > whose > > > arguments you would "never know" the names of. > > > > I run into that a lot - in dynamic programming you know nothing about > > the methods you are calling beyond the name and approximate calling > > sequence. I use getMetadata() on the function to find its arguments. > > See: > > > > > > http://org-corfield-cfmx.googlecode.com/svn/trunk/wwwroot/org/corfield/component.cfc > > > > The call() method handles arbitrary dynamic calls. > > -- > > Sean A Corfield -- (904) 302-SEAN > > An Architect's View -- http://corfield.org/ > > > > "If you're not annoying somebody, you're not really alive." > > -- Margaret Atwood > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CFCDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cfcdev?hl=en -~----------~----~----~----~------~----~------~--~---
