On Mar 28, 5:05 pm, billh04 wrote:
> I have been thinking of doing the following to catch misspellings:
>
> (def -north- :north)
> (def -south- :south)
Nothing wrong with that, but it still doesn't prevent you from using
the keywords elsewhere. You probably want to add assertions and
valida
something like this came up on irc the other day. this is a good
opportunity for someone to write some macros that allow you to
specify a validator function for structs similar to refs and agents.
On Sat, Mar 28, 2009 at 2:20 PM, mikel wrote:
>
>
>
> On Mar 28, 4:05 pm, billh04 wrote:
>> I am
On Mar 28, 4:05 pm, billh04 wrote:
> I am using keywords as constants in my clojure programs, but I am
> worried about misspelling them. For example, I am writing a game and I
> am using the keywords :north and :south to indicate objects that
> belong to the north player or the south player. Wi