[Catalyst] [OT] ASP.NET MVC#

Zbigniew Lukasiak zzbbyy at gmail.com
Sat Dec 22 22:38:30 GMT 2007


On Dec 21, 2007 10:22 PM, Daniel McBrearty <danielmcbrearty at gmail.com> wrote:
> i'm not completely following the new syntax that you are proposing, so
> please forgive if I am wide of the mark here ... but ...
>
> IMO the existing syntax is really not *that* bad - the only mild crit
> I have is that Args() really means "I'm an endpoint", which it doesn't
> say.
>
> For me, a simple improvement would be to allow an alternative name
> such as "EndpointArgs" that is a bit more obvious, and keep the rest
> just as it is.

My argument really is that the number of parameters an action takes is
independent from the fact that it is an end point or is not, and that
you should not have one attribute that carries both of those meanings.
  So my latest proposal is to use Args to indicate the numer of
parameters an action takes (just like you do it now, but also when you
now use CaptureArgs) and IsParent to indicate that you can attach
other actions to it.

> I worry a bit that two syntaxes, achieving the same thing but looking
> quite different to each other, and both coexisting in docs, mailing
> lists, and code, are just going to add more potential confusion than
> they clear up.

Understood.  If my proposal gets accepted I volunteer to purge
CaptureArgs from the docs (and the Ministry of Love will go after
those that mention CaptureArgs on the mailing lists).  I think my
proposal is really minimal - in fact I would say it does not introduce
more new things than your 'simple improvement' above.

Cheers,
Zbigniew Lukasiak
http://perlalchemy.blogspot.com/



More information about the Catalyst mailing list