What do you think about using evaluation environments as a basis for a module 
system. I was thinking syntax like this

(define-module foo)
(using foo
  (define (baz x)
    (+ x x))
  (define-syntax (bar stx)
    (cdr stx)))

(define-module bar)
(using bar
  (include foo)
  (display (bar (baz 10)))) ;; Prints 20
(baz 100) => fails

 

Wouldn't this be the most scheme like module system possible.


_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to