Re: [PW-dev] parameter names (dash, underscore, none)
Status: Alpha
Brought to you by:
spadkins
From: Gunther B. <gu...@ex...> - 2001-06-20 01:51:37
|
At 01:56 PM 6/19/01 -0500, James G Smith wrote: >Stephen Adkins <ste...@of...> wrote: > >At 11:32 AM 6/19/2001 -0500, James G Smith wrote: > >>Stephen Adkins <ste...@of...> wrote: > >... > >>It would be nice to make the translation easy on the code which means > >choosing > >>a substitute character... Perhaps a period `.' ? > >> > >>$last_name = $wc -> widget( > >> -border.style => "solid", > >>) -> html(); > > > >James. I liked the suggestion better than the underscore (_) I was using, > >but the "." is the concatenation operator, resulting in the same as: > > > >$last_name = $wc -> widget( > > -borderstyle => "solid", > >) -> html(); > > > >So, I'm sticking with underscores. ;-( > >doh! What does CGI.pm do? Why don't we just go with that and stick with it. I think adding the underscores can be done later, but it's very hard to take away an API once it's been added. Of course CGI.pm has an interesting philosophy of automagically taking params that it doesn't know about it making them attributes of the generated HTML, so that is an interesting feature/utility for a widget. Later, Gunther |