Re: Return nil/null or empty object

2009-07-02 Thread Chouser
On Thu, Jul 2, 2009 at 1:59 PM, Raoul Duke wrote: > >> clojure functions should return a value.  This is good advice, but I >> have code that sometimes return nil.  Is it better to return 'nil' or >> an object with no data.  I guess a simple example, if you have a > > imho, null/nil/etc. are more

Re: Return nil/null or empty object

2009-07-02 Thread Daniel Lyons
On Jul 2, 2009, at 11:48 AM, BerlinBrown wrote: > > I posted a thread about side-effects. Some one replied that your > clojure functions should return a value. This is good advice, but I > have code that sometimes return nil. Is it better to return 'nil' or > an object with no data. I guess

Re: Return nil/null or empty object

2009-07-02 Thread Raoul Duke
> clojure functions should return a value.  This is good advice, but I > have code that sometimes return nil.  Is it better to return 'nil' or > an object with no data.  I guess a simple example, if you have a imho, null/nil/etc. are more often than not pretty evil. random related links: http://