Clojure API exposes types to the user (Agent, Ref, Var, ...), so it is
benefical to see on the first glance whether the name is of a type or
interface/protocol. If the API would be built solely on the
protocols/interfaces, those prefixes would be of less use.

Moreover, I think that names of types should be nouns (e.g. Atom) and
names of protocols should be adjectives/verbs (e.g. ICounted), with
the exception of protocols which represent an abstract type (e.g.
IPersistentList)

Jozef

On Sat, Sep 6, 2014 at 6:40 PM, Bobby Eickhoff <beickh...@gmail.com> wrote:
> What might be an advantage to using something like the I-prefix?  At first
> glance, this appears to be unbeneficial hungarian notation.
>
> Aesthetically, this seems backwards (to me).  I want interfaces and
> protocols to have the most readable names.  I'm willing to concede on less
> readable names for concrete implementations.  Many implementations and
> participants will even be anonymous.
>
> On Friday, September 5, 2014 5:52:48 AM UTC-4, Dave Sann wrote:
>>
>> I saw a comment on protocol naming here:
>> https://groups.google.com/d/msg/clojure/A4xIitQWloU/6E4xHDTPPaIJ
>>
>> there is nothing in the coding standards:
>> http://dev.clojure.org/display/community/Library+Coding+Standards (are these
>> maintained?)
>>
>> is there any sensible consensus on good naming convention?
>>
>> IBlah
>> PBlah
>> BlahP
>> Blah
>> ...other
>>
>> ...doesn't matter
>>
>> Dave
>
> --
> 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
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to