[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Scheme-reports] Why define-library requires a explicit begin form?



Here is a example in r7rs-draft-9.pdf:
(define-library (example life)
  (export life)
  (import (except (scheme base) set!)
          (scheme write)
          (example grid))
  (begin
    (define (life-count grid i j)
      ...)
    ...))

why not:
(define-library (example life)
  (export life)
  (import (except (scheme base) set!)
          (scheme write)
          (example grid))
  (define (life-count grid i j)
    ...)
  ...)

The second one (which is more r6rs-alike) looks less verbose, isn't it?
Can anyone please tell me why the first one is preferred, thank you very much!
_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports