nathaniel
2018-11-30 22:34:30

Is there some shorthand or concise notation for requiring multiple sibling submodules? For example, I can require (require json net/url) pretty neatly, but I end up doing a lot of repetition with submodules like

(require web-server/templates
         (submod ".." replies)
         (submod ".." layouts)
         (submod ".." pages)
         (submod ".." logging))

It’s possible that I misunderstand how to do this idiomatically, however. Any suggestions or clarification appreciated.


abmclin
2018-11-30 23:16:38

@nathaniel does (submod “..” replies layouts pages logging) work?


nathaniel
2018-11-30 23:26:33

@abmclin no, because that means that I am trying to drill down, as if logging was a child of pages: module name: #<resolved-module-path:(submod 'main[2565] replies layouts pages logging)>


abmclin
2018-11-30 23:28:10

Oh I see it’s really individual submod path elements rather than submod names


nathaniel
2018-11-30 23:31:26

yeah so ".." replies means “go up a level and then down into replies”, or at least that’s how I think about it what I’d like to say is “go up a level and get then go down into foo, bar, and buzz”


greg
2018-12-1 01:53:40

@nathaniel Does multi-in work with submodules? If not that seems like a good feature request.