[#3986] Re: Principle of least effort -- another Ruby virtue. — Andrew Hunt <andy@...>

> Principle of Least Effort.

14 messages 2000/07/14

[#4043] What are you using Ruby for? — Dave Thomas <Dave@...>

16 messages 2000/07/16

[#4139] Facilitating Ruby self-propagation with the rig-it autopolymorph application. — Conrad Schneiker <schneik@...>

Hi,

11 messages 2000/07/20

[ruby-talk:03745] Re: CGI module and form fields values

From: Aleksi Niemel<aleksi.niemela@...>
Date: 2000-07-02 16:29:52 UTC
List: ruby-talk #3745
> > How to get in output the fields and their value in the same order as
> > they are in the form?
> A solution might be to give each field a name that includes a prefix:

Moreover, I'm not sure RFC for HTTP (1949 if I recall correctly) requires
client (browser) to send form parameters in any particular order, which
server could rely on.

If this is so, there's no point to change current implementation to return
fields in parsed order. If we have to change current cgi-lib we could create
generic OrderPreservingHash which method each iterates elements in insertion
order (I had need for this in Perl every now and then, so I guess it's handy
to be around). In any case, the workaround what Dave presented works
marvellously:).

	- Aleksi

In This Thread

Prev Next