(Added the list as CC:)

Actually was thinking [dir [dotfiles?]], not thinking that listing the current working directory is going to be super common, and a user can just put (working-directory) for dir since we helpfully supply it.  But I have no strong feelings against discriminating on type, besides it making the implementation significantly more complicated, since [foo [bar]] is dead simple with Chibi Scheme's let-optionals ... which originally came from scsh....

I'll go with that for now, can change it if people really want the two to be completely independent.

- Harold

----- Original message -----
From: John Cowan <xxxxxx@ccil.org>
Date: Monday, July 29, 2019 11:53 AM

Or no, you mean [foo] [bar], don't you?  I'm okay with that (discriminating on type) but I know some Schemers dislike it.

On Mon, Jul 29, 2019 at 12:52 PM John Cowan <xxxxxx@ccil.org> wrote:
Yes, that's what [foo bar] means in Olin Shivers SRFIs (see SRFI 13, e.g.)   But feel free to change it to [foo [bar]].

On Mon, Jul 29, 2019 at 11:46 AM <xxxxxx@ancell-ent.com> wrote:

It's signature is:

(directory-files [dir dotfiles?])

Seems to me that dir and dotfiles? should be independent optional variables, if you specify a directory, you shouldn't have to also specify if you want to see the dot files.