[Nitro] param handling

transfire at gmail.com transfire at gmail.com
Tue Oct 24 19:25:51 EDT 2006

Jonathan Buch wrote:
> Hi,
> thanks for taking the time to answer.
> > I don't think the first possibility is a good idea because, like
> > Jonathan said, parameters in query strings are inherently unordered.
> > However, if Ruby would support named parameters, or, if one could
> > annotate the method so that Nitro could find out in which order it has
> > to provide the params, I would rather like the first possibility.
> > Something like
> >
> >       ann :action, :params => %w[par2 par1]
> >       def action(par2, par1)
> Using annotations is quite costly (in facets < 1.7, dunno about 1.7, trans?)
> But it would be a possibility to make the version from George run without
> inconsistencies, so one could call

A little better but still costly I'm afraid. I'd love to lighten them
up more but the magic dot notion and storing their identity within them
(eg. name, class), limits how far that can go.


More information about the Nitro-general mailing list