[REBOL] Re: [AWK GREP] AWK and GREP funcs, arg order
From: anton::wilddsl::net::au at: 17-May-2007 13:02
I think the best arg order is the one that puts the
smallest and/or most constant-sized args first, and
the larger or variable-length args later.
This leads to more easily identifiable expressions,
and more of the expression can be typed before pausing
to consider the more variable parts.
When SWITCH was being added to rebol, I argued
against using Carl's simple arg order rule, which would
have put the CASES arg before the VALUE arg.
Thank heavens he listened to reason.
I generally dislike looking for SELECT's second argument,
and NEW-LINE bugs me more, where you have to wrap the
thing you're modifying in a sandwhich of 2 arguments.
It means more unnecessary keyboard navigation and visual
concentration to find the position for the second arg.
Anyway, rant off.
Can you give some examples of typical arguments for your
AWK and GREP ? Then we can consider various orders.