It's confusing that the REPL prints out a list structure when it's in fact 
a sequence:

Eg.

(seq [1 2 3]) ;=> (1 2 3)

People might think it's a list, but it's a sequence (logical list in memory 
only, not a new data structure).

(seq? (seq [1 2 3])) ;=> true
(list? (seq [1 2 3])) ;=> false

I feel that it would be better if it was printed out in a structure letting 
people know that it's a sequence so we don't mix list with sequence 
structures.

Perhaps something like:

(lazy-seq [1 2 3])
(seq [1 2 3])

or something telling users it's a sequence.

Clojure is a great lang since it's focused on simplicity. I feel the way it 
works currently is adding unnecessary complexity in understanding what 
sequence really is, and is not.

Johnny

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to