What about kind of namespaces (without dot and gluing identifiers) ?:

(define-namespace (v '#(a b c d e))
  [(ref index) (vector-ref v index)]
  [(set! index value) (vector-set! v index value)]
  [(length) (vector-length v)])


(~ v ref 0)

(~ v set! 0 'x)

(~ v length)

;; get length procedure:
(~ v . length)

 ;; get ref procedure:
(~ v . ref)

--
Bogdan

“An elephant is a mouse with an Operating System.” —Knuth

Reply via email to