Realign type ids

This commit is contained in:
Peter Taoussanis 2015-06-28 13:50:27 +07:00
parent 11545690c8
commit 6b4e1341ee

View file

@ -74,7 +74,7 @@
;; ** Negative ids reserved for user-defined types **
;;
(def ^:const id-reserved (int 0))
;; 1
;; 1 ; Deprecated
(def ^:const id-bytes (int 2))
(def ^:const id-nil (int 3))
(def ^:const id-boolean (int 4))
@ -82,14 +82,14 @@
(def ^:const id-serializable (int 6)) ; Fallback #1
(def ^:const id-char (int 10))
;; 11
;; 12
;; 11 ; Deprecated
;; 12 ; Deprecated
(def ^:const id-string (int 13))
(def ^:const id-keyword (int 14))
(def ^:const id-list (int 20))
(def ^:const id-vector (int 21))
;; 22
;; 22 ; Deprecated
(def ^:const id-set (int 23))
(def ^:const id-seq (int 24))
(def ^:const id-meta (int 25))
@ -132,10 +132,10 @@
;; (def ^:const id-map-small (int 112)) ; ''
;;; DEPRECATED (old types will be supported only for thawing)
(def ^:const id-old-reader (int 1)) ; as of 0.9.2, for +64k support
(def ^:const id-old-string (int 11)) ; as of 0.9.2, for +64k support
(def ^:const id-old-map (int 22)) ; as of 0.9.0, for more efficient thaw
(def ^:const id-old-keyword (int 12)) ; as of 2.0.0-alpha5, for str consistecy
(def ^:const id-old-reader (int 1)) ; v0.9.2+ for +64k support
(def ^:const id-old-string (int 11)) ; v0.9.2+ for +64k support
(def ^:const id-old-map (int 22)) ; v0.9.0+ for more efficient thaw
(def ^:const id-old-keyword (int 12)) ; v2.0.0-alpha5+ for str consistecy
)
;;;; Ns imports (mostly for convenience of lib consumers)