Small questions on error-kit—which I love and think that all clojure-
contrib libraries should use—why do defined errors such as *error*,
*number-error*, etc. have names surrounded by asterisks? According to
this thread—http://groups.google.com/group/clojure/browse_thread/
thread/65d98eda2d1154b2—
On Tue, Mar 3, 2009 at 2:10 PM, samppi wrote:
>
> Small questions on error-kit—which I love and think that all clojure-
> contrib libraries should use—why do defined errors such as *error*,
> *number-error*, etc. have names surrounded by asterisks?
Thanks for the endorsement! Have you used cont
I appreciate that they stand out. Again, this is similar to the constants
conversation earlier, visually marking the intended use is a good habit,
IMHO. Of course this doesn't mean that error-kit should define the base
error this way, but I intend to keep on wrapping my errors in earmuffs :)
Davi
On Tue, Mar 3, 2009 at 10:36 PM, David Nolen wrote:
> I appreciate that they stand out. Again, this is similar to the constants
> conversation earlier, visually marking the intended use is a good habit,
> IMHO. Of course this doesn't mean that error-kit should define the base
> error this way,
capitals seems pretty weird for a Lisp. Now that I think about it, perhaps
foo-error isn't so bad.
David
On Tue, Mar 3, 2009 at 10:54 PM, Chouser wrote:
>
> On Tue, Mar 3, 2009 at 10:36 PM, David Nolen
> wrote:
> > I appreciate that they stand out. Again, this is similar to the
> constants
> >
Yeah. Personally, I don't think they should stand out any more than a
struct basis needs to stand out.
(defstruct person :fname :lname)
(struct person "Bob" "Joe")
(deferror parse-error {...})
(raise parse-error ...)
Defined errors are just variables in a namespace, whose siblings
include the
On Wed, Mar 4, 2009 at 11:34 AM, samppi wrote:
>
> Yeah. Personally, I don't think they should stand out any more than a
> struct basis needs to stand out.
SVN rev 565 has '*error*' renamed to 'error', and the example updated.
This is a breaking change if you were using the name '*error*'
direc