"be consistent" | |
PerlMonks |
Re^2: RFC: A Tk module for handling double clicks - Tk::DoubleClickby liverpole (Monsignor) |
on Aug 07, 2009 at 15:02 UTC ( [id://786812]=note: print w/replies, xml ) | Need Help?? |
Thanks, hangon.
I thought about your suggestion to make all parameters non-positional, but it occurs to me that there are a significant number of Tk methods (most notably in Tk::Canvas) where mandatory parameters are positional, and are followed by the optional ones. Here is just a partial list:
As the widget and the single-click and double-click callbacks are mandatory, it seems like they work more naturally as positional arguments. s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
In Section
Meditations
|
|