And the downside to the confused API is?  These particular CFCs I am
thinking about have been in place for years and heavily used in a shared
hosting environment, the current one being rock steady but I could not speak
for the prior ones since that is before my time.  So kind of curious beyond
confusing a person when they look at it, what is the downside in regards to
the server processing it since does not seem to have adverse or must be
minimal effects with the API "confused".

I actually seem to recall reading a thread about this quite sometime ago and
thought in the discussion people were surprised that it worked one way vs
the other. Maybe was on the BD list because I keep thinking something
specific with that syntax involved BD perhaps it throws an error with BD but
I long since slept since all of that.

On 10/16/07, Brian Kotek <[EMAIL PROTECTED]> wrote:
>
> It doesn't throw an error, but it does confuse the API. Either the
> argument is required (meaning you have to pass one in), or it is not (in
> which case you can set a default for it if you choose). In my mind, if you
> specify a default value, that means the argument isn't required.
>
> On 10/16/07, Aaron Rouse <[EMAIL PROTECTED]> wrote:
> >
> > Why not?  Sure the default sets which means it really is not required,
> > but it does not throw any errors.  I have some old CFCs from I think a
> > BlueDragon project that do this almost consistently in but not sure why
> > since inherited them.  I do know on CF6, CF7, and CF8 they all run fine.
> > Guess they will remain that way until the day it throws an error or they are
> > retired.
> >
> > On 10/16/07, Dan Wilson < [EMAIL PROTECTED]> wrote:
> > >
> > >
> > > 2) You may declare a default attribute for a cfargument, or you may
> > > declare required=true. Not both.
> > >
> >
> >
> >
>
> >
>


-- 
Aaron Rouse
http://www.happyhacker.com/

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to