2009/7/8 Sean Devlin <[email protected]>:
>
> Laurent,
>
> I don't quite understand your point.  Could you please explain it a
> little more?

Oh, I wanted to be quick.

I think using the term "array" instead of "vector" (which is the real
term used for datastructure created by a [:a :b :c :d] form) may be
confusing (one could overlook and understand "java array").

see: http://clojure.org/data_structures#toc15

and from ( http://clojure.org/reader ):
"Vectors
Vectors are zero or more forms enclosed in square brackets:
[1 2 3]
"

Regards,

-- 
Laurent

>
> Thanks
>
> On Jul 8, 12:16 pm, Laurent PETIT <[email protected]> wrote:
>> 2009/7/8 Sean Devlin <[email protected]>:
>>
>>
>>
>> > This seems like a good use for a macro.  A couple of thoughts:
>>
>> > 1.  Use arrays instead of lists
>> > In clojure, it is "best practice" to use arrays for data.  So, your
>> > macro call should look like this.
>>
>> > (match [1 2 3]
>> >       [1 x]   (+ x x)
>> >       [1 x y] (+ x y))
>>
>> Hi,
>>
>> s/array/vector/g
>>
>> Regards,
>>
>> --
>> Laurent
> >
>

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

Reply via email to