Re: How I can access protected field of superclass from my generated by "gen-class" subclass?

2016-07-12 Thread Roc King
(ns demo.protectedfield [:gen-class :extends clojure.lang.ARef :exposes {validator {:get getvalidator :set setvalidator}}]) Is this what you are looking for? After compile, you will get a class that extends clojure.lang.ARef (compile 'demo.protectedfield) (instance? clojure.lang.ARef (dem

Re: [ANN] Clojure 1.9.0-alpha11

2016-08-20 Thread Roc King
I have two questions about spec and ns. In clojure/core/specs.clj: * both ::ns-require and ::prefix-list use s/cat. * ::refer uses s/coll-of. So both list and vector could be used, right? i.e. the following ns declarations work in 1.9.0-alpha11: * (ns n (:require [clojure.set :refer [map-