In a number of languages, arrays are typically a fixed size, whereas
vectors are typically a variable size.

I imagine Clojure adopts this for the same reason, and also because "array"
already refers to Java arrays.

- James

On 3 October 2015 at 03:49, Daniel Compton <daniel.compton.li...@gmail.com>
wrote:

> I recently had someone learning Clojure ask me why Clojure used the term
> 'vector' when many other languages used the term 'array'. I thought for a
> bit, and the only reason I could come up with was that it clearly
> differentiated Clojure's array-like data structures from Java's array data
> structures. I had a search online and couldn't find anything discussing
> this.
>
> Does anyone know if there is an official reason for this?
> --
> Daniel
>
> --
> 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 unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to