-
Notifications
You must be signed in to change notification settings - Fork 227
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
Awkwardness of dest
argument for bundle/add-bin
?
#1484
Comments
dest
argument for bundle/add-bin
dest
argument for bundle/add-bin
?
I'm ok with the change for the default of the |
TLDR; Thanks for your thoughts, perhaps as you seem to be hinting at, it may be unlikely that problems will arise with the current arrangement. I'm going to spell things out a bit more below(, partly for my own understanding). I take it that ordinarily a developer wouldn't want to be putting library files in It seems likely that for some time there will be overlapping use of The leading dot suggestion was partly about preventing such accidental use / choice in the above sort of case, but also if janet were to need further "special" directories, the aforementioned simple "namespacing-via-leading-dot-or-not" idea might be less problematic than accidentally choosing some name that a developer might have already chosen. Of course, there is nothing to prevent the choice of a name beginning with a leading dot in the future -- no such convention has to exist beforehand, so again, this may be nothing to be concerned over. With all of that laid out, it seems clearer to me that the necessity is on the low side. I do think it is nicer (for human decisions and unintentional error-making as well as programmatically) to be able to make the distinction (about whether a directory is "special") based on a simple rule, but may be one is unlikely to get that much out of it in this case. [1] May be this is not a good assumption? |
#1485 is working for me, thanks! |
I'm trying out
bundle/add-bin
and found that I ended up expressing a call with adest
argument like this:Note the prefix of
bin/
for thedest
argument.I think it would be nicer to be able to say:
If this is non-problematic in theory, is it too late to change
bundle/add-bin
's behavior?On a side note, it looks like
bin
andbundle
are "special" directories under(dyn *syspath*)
, i.e. probably it's best if people don't create a project that stores their library code in those directories?There already seem to be some other "special" directories like
.cache
,.manifests
, etc. in my environment.I wonder whether there could be a
.bin
and.bundle
instead ofbin
andbundle
...thoughts?Update: Spelling things out a bit differently, adopting a convention like
.<name>
for all "special" directories might make it easier to avoid accidental use by 3rd parties, be more consistent with the pre-bundle setup, and makes it easier to programmatically operate on "special" vs "non-special" directories under(dyn *syspath*)
. May be there are some downsides too (possibly breaking some code?) I'm not thinking of.The text was updated successfully, but these errors were encountered: