Correct the misleading chunked-seq? stub comment
The overlay comment claimed Jolt has no chunked seqs and that chunked-seq? is always false. That is no longer true: a vector's seq is a real chunked seq, and post-prelude.ss rebinds chunked-seq? to na-chunked-seq?, which returns true for a vector seq. The defn here is only a placeholder so references compile during overlay load. Updated the comment to say so.
This commit is contained in:
parent
2a8783649e
commit
f82568281e
1 changed files with 4 additions and 1 deletions
|
|
@ -271,7 +271,10 @@
|
||||||
(when (< i (count vars))
|
(when (< i (count vars))
|
||||||
(var-set (nth vars i) (nth saved i))
|
(var-set (nth vars i) (nth saved i))
|
||||||
(recur (inc i))))))))
|
(recur (inc i))))))))
|
||||||
;; Jolt has no chunked seqs, so this is always false.
|
;; A vector's seq IS a real chunked-seq (chunk-first hands out a 32-element block).
|
||||||
|
;; This is only a placeholder so references compile during overlay load; the host
|
||||||
|
;; rebinds chunked-seq? to na-chunked-seq? in post-prelude.ss, which returns true
|
||||||
|
;; for a vector seq and false otherwise.
|
||||||
(defn chunked-seq? [x] false)
|
(defn chunked-seq? [x] false)
|
||||||
|
|
||||||
;; Atom peripheral operations. atom/swap!/reset!/deref stay native — the compiler
|
;; Atom peripheral operations. atom/swap!/reset!/deref stay native — the compiler
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue