On Fri, Nov 21, 2008 at 07:30:08PM +0100, Moritz Lenz wrote:
: For chmod() I could imagine an interface like this:
: 
: $file.chmod(:8<540>);
: $file.chmod( :set, :user => :r & :x, :group => :r)
:        # both same as 'chmod 540 $file'
: 
: $file.chmod( :modifiy, :other => :!x)
:        # same as 'chmod o-x $file'

A pair on the left side of => could be construed as a design smell.
And I wonder if the set/modify distinction can be better mapped onto
assignops somehow...

Larry

Reply via email to