2, 7:21 pm, joshua-choi wrote:
> When it comes to naming factory functions—functions that create things—
> clojure.core gives four precedents:
>
> 1. Name it exactly what the new object is called. vector, hash-map,
> set.
> 2. Name it a shortened version of #1. vec.
> 3. Prefix #1
On 23 April 2010 12:21, joshua-choi wrote:
> When it comes to naming factory functions—functions that create things—
> clojure.core gives four precedents:
>
> 1. Name it exactly what the new object is called. vector, hash-map,
> set.
> 2. Name it a shortened version of #1. v
When it comes to naming factory functions—functions that create things—
clojure.core gives four precedents:
1. Name it exactly what the new object is called. vector, hash-map,
set.
2. Name it a shortened version of #1. vec.
3. Prefix #1 with "make-". make-hierarchy, make-array.
4. Pref