[Web-SIG] Form field dictionaries

Ian Bicking ianb at colorstudy.com
Wed Oct 29 01:46:22 EST 2003


On Wednesday, October 29, 2003, at 12:21 AM, Stuart Langridge wrote:
> Would it be worth having form['fieldname'] default to doing a
> getfirst()? That way, if you're *expecting* a list, you can look for
> one by doing form.getlist("username") and if not you just get one entry
> (getfirst should possibly be getlast, but that's a different issue).
> This is a bit non-discoverable, though...

getfirst, getlast?  Why ever would you choose one over the other?  (Why 
ever would you choose either?)

Explicit is better than implicit.
In the face of ambiguity, refuse the temptation to guess.



--
Ian Bicking | ianb at colorstudy.com | http://blog.ianbicking.org




More information about the Web-SIG mailing list