[Rest2web-develop] Docs revision, "length" removal
Brought to you by:
mjfoord
From: Nicola L. <ni...@te...> - 2005-08-21 08:57:13
|
Completed revising configobj.txt, committed it in two steps: in the first one there's only trailing spaces removal, the real changes are in the second one. This way it may be easier reviewing the changes. Now I'm looking at validate.txt . I'd like to remove the "length" argument for lists (and strings). It's redundant (one may set "min" and "max" to the same value), and probably it isn't used often to warrant special-casing it. Moreover, it prevents being able to write "list(1)" or "list(1,4)", forcing explicit specification: "list(min=1)", "list(min=1, max=4)", and making it incoherent with "integer" check definition. What do you think? -- Nicola Larosa - ni...@te... PHP is such a load of crap, right down to the standard library, that it creates a culture where it's acceptable to write horrible code. [...] Maybe with PHP 5 they are trying to clean up the neighborhood, but that doesn't change the fact when you program in PHP you are programming in a dump. -- Ian Bicking, July 2005 |