Re: Naming structs

2009-09-24 Thread Miron Brezuleanu
Hi, On Thu, Sep 24, 2009 at 12:12 PM, Jarkko Oranen wrote: > > On Sep 24, 11:01 am, Miron Brezuleanu wrote: >> Hello, >> >> I find that I tend to name struct instances like the struct. For instance, >> > > You could name the struct base or something. I vaguely > remember reading somewhere tha

Re: Naming structs

2009-09-24 Thread Jarkko Oranen
On Sep 24, 11:01 am, Miron Brezuleanu wrote: > Hello, > > I find that I tend to name struct instances like the struct. For instance, > > (defstruct person :name) > > and then > > (let [person (struct person "John")] > ) > > which breaks further use of (struct person ...) in that let. > > Is t

Re: Naming structs

2009-09-24 Thread Richard Newman
> 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 (str

Naming structs

2009-09-24 Thread Miron Brezuleanu
Hello, I find that I tend to name struct instances like the struct. For instance, (defstruct person :name) and then (let [person (struct person "John")] ) which breaks further use of (struct person ...) in that let. Is there an established naming convention that I could use? (I'm trying