(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.
----- Original message -----
From: John Cowan <email@example.com>
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.
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]].
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.