load-and-import added by gahr on Mon Jan 23 18:06:53 2023

(import-for-syntax (chicken format))

(define-syntax load-and-import
  (er-macro-transformer
    (lambda (expr rename compare)
      (let ((mods (cdr expr)))
        (map (lambda (mod)
               (load (sprintf "~A.scm" mod))
               `(import ,mod)
               )
             mods)
        ""))))

(load-and-import foo bar)