> Is there an established naming convention that I could use? (I'm
> trying to use (let [aperson (struct person "John")]...) but I'm not
> completely happy with it.)

AppleScript uses "the-person", but I don't recommend that :)

I'd go for one of two avenues — descriptive:

   (let [recipient (struct person "John")
         sender    (struct person "Bill")]
     ...)

or abbreviated:

   (let [pers (struct person "John")]
     ...)

possibly even dropping to 'p' if the function is short enough.

The reasoning is that John isn't just a person, they're a person in a  
*context* — you're sending them an email, adding them to an address  
book — or you're doing something so general that pseudo-algebraic  
notation (x, y, z) is appropriate.

The other approach is to not need to name your instances at all. Keep  
things short and higher-order enough and you'll only ever need to pass  
them as parameters.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to