
I think the two require
chunks is worth it to have the provide
as close to the top as possible

it turns into three chunks as soon as you have a test submodule anyway

I guess an alternative question is, why can’t provide
be automatically moved to the end of the module?

I’m currently in the habit of putting the requires in one chunk at the top of the file, including some lines like (module+ test (require ...))
if I’m using module+
. I think it’s just a combination of Java habits and wanting to keep track of the full set of dependencies for a file so I’ll be able to tell how much work a port to another language will be.

@sorawee it could but then you have weird expression and expansion evaluation order

also, since provide
is a macro, you have to decide who moves it, and what counts as a provide