On Thu, Feb 19, 2015, Phill Wolf wrote:
> The "Differences" page
> 
> https://github.com/clojure/clojurescript/wiki/Differences-from-Clojure
> 
> says, under Seqs,
> 
> "The apply function works but does not correctly handle
> lazy sequences. More information can be found on
> ticket #11"

That is ancient history, but it might still be true. It probably dates to a 
very early implementation of `apply` in ClojureScript which always realized its 
arguments into an array.

The implementation of `apply` has changed since then, but the docstring still 
says "Not lazy."

I don't know if the current implementation of `apply` is fully as lazy as the 
version in Clojure, but I expect that it is.

The "Ticket #11" refers to an older ticketing system, before JIRA. Maybe 
Assembla? I can't find it.

Some relevant commits from the history of `apply` in ClojureScript:

https://github.com/clojure/clojurescript/blob/cf5fccc7fdf5342747d34b0666a4f937fe641faf/src/cljs/cljs/core.cljs#L2990

https://github.com/clojure/clojurescript/commit/c895d9009dd681a3d246233e3ade3381a98f21ee

https://github.com/clojure/clojurescript/commit/46b109f10bf1417db1f44b6a14373f046469410f

https://github.com/clojure/clojurescript/commit/2ff5b5cd0a4d380091151d3117a0d3099e40cae0

-- 
Note that posts from new members are moderated - please be patient with your 
first post.
--- 
You received this message because you are subscribed to the Google Groups 
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.

Reply via email to