> So I must admit that I'm a bit confused about what the
point of the cfargument
> tag
Have you read the docs for <cfargument>? That's always
a good place to
start when trying to find out what something does.
http://livedocs.adobe.com/coldfusion/8/Tags_a-b_6.html
In short, <cfargument> has these benefits:
- enables type validation on arguments;
- enables requiredness validation on arguments;
- enables the provision of default values for optional
arguments;
- enables the creation of API documentation for your CFCs
(and, indeed,
code self-documentation);
- enables the definition of an interface for overridden CFC
definitions;
- enables the definition of web services (or at least allows
one to defined
web services that take arguments, anyhow).
--
Adam