Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search

[REBOL] Re: [AWK GREP] AWK and GREP funcs, arg order

From: anton::wilddsl::net::au at: 20-May-2007 2:09

Hi Ged, It depends on the user. For myself, I found the opposite, that I was often using the same filename pattern (*.r) as a rebol developer, and looking for different contents. But I can certainly imagine particular contents patterns being reused often in other usage scenarios. Given this ambiguity, I would favour putting the higher-level file-pattern first. Wouldn't it be nice if we could swap the order of arguments somehow ? eg. rawk file-pattern contents-pattern or rawk swap contents-pattern file-pattern where SWAP changes the order of the arguments to suit RAWK's preferred order. (Actually, we should put everything into an associative database, then the above problems do not exist.) Regards, Anton.