Re: Naming factory functions

2010-04-29 Thread ataggart
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

Re: Naming factory functions

2010-04-29 Thread Timothy Pratley
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

Naming factory functions

2010-04-22 Thread joshua-choi
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