[gambit-list] Reader macro, read square brackets to vector and module system.

caio rodrigues caiorss.rodrigues at gmail.com
Wed Jan 6 18:50:26 EST 2016


Hi list. Is there any way to make Gambit repl read for instance [1 2 3 4 5]
and turn it into a vector #(1 2 3 4 5) and also everything into brackets
{x: 2 y: 4} into a hash table ?

Another question: Is there any module system implementation for gambit that
can import packages like Python, import sys or a clojure-like module system
?

Example Clojure-like module system:

*file: namespace.ss*

---------------------------------

(ns namespace)

(define (fun1 ....)

(define (fun2 x y z) ...)

---------------------------------

and then in the repl:

(require 'namespace)

(namespace/fun1 2 4 5)

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20160106/44d59613/attachment.htm>


More information about the Gambit-list mailing list