Hey,

I replied in the ticket with some comments. The main issue I see is
that I'm used to the notion that IPersistentLists are things which are
not lazy and which have next/rest parts which are themselves IPLs and
this approach seems to cause that no longer to be the case. If it were
not to be the case, then the question arises why maintain the list/seq
distinction at all. Will be interesting to read further opinions on
this!

Cheers,
Michał


On 4 January 2013 21:06, Marek Šrank <markus.mas...@gmail.com> wrote:
> I found CLJ-1060 [1] and added there a patch with Cons implementing
> IPersistentList and (apply list args) in one-argument case of list*.
>
> Marek
>
> [1] http://dev.clojure.org/jira/browse/CLJ-1060
>
>
> On Wednesday, December 26, 2012 9:35:25 PM UTC+1, Marek Šrank wrote:
>>
>> function list* doesn't return a list, because it uses 'cons' under the
>> hood:
>>
>> (list? (list* 1 2 3 '()))
>> ;=> false
>>
>> (class (list* 1 2 3 '()))
>> ;=> clojure.lang.Cons
>>
>> ...however, its docstring says: "Creates a new list containing the items
>> prepended to the rest, the last of which will be treated as a sequence."
>>
>> I think that this can be pretty confusing... Shouldn't it be fixed (at
>> least the docstring)?
>>
>>
>> Cheers,
>> Marek.
>>
> --
> 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

-- 
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