-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature proposal: gfind #298
Comments
My intution is that if we design this correctly we won't need to have many parameters. Some of these desired features could be split out into orthogonal utilities. In the spirit of the Unix philosophy we want each utility to do one thing and do it well! Specifically, I think you could split it up like this:
|
That seems like a better way to structure this, I'll give writing it a shot and report back. |
As discussed in Gabriella439#298
I think having a more full featured find utility would be great.
I figured I'd post a plan to get ideas before I start trying to write it. In my head it's
gfind
because it's going to implement more of the features of gnu find.Desired Features (a start at)
-maxdepth
and-mindepth
-cmin
and-amin
-type
Implementation concerns
A feature rich find would have a huge number of parameters most of which wouldn't be necessary for every use. So optional arguments are almost definitely necessary. I think an approach inspired by: http://neilmitchell.blogspot.ca/2008/04/optional-parameters-in-haskell.html could be useful.
To avoid namespacing issues we could use
vinyl
records, an example might look like:A global set of defaults can be defined by the package and the users options can be integrated with the defaults via
rreplace
Any thoughts and suggestions would be appreciated.
The text was updated successfully, but these errors were encountered: