I think this further reinforces the need for a clj-lint of sorts. I
know I have accidentally declared variables, fns, etc. in both def-
derivative forms and in let-style forms that have shadowed a var that
was in use somewhere else higher up. It would be handy to have a tool
I could run ove
For what it's worth, I try to follow the convention Rich uses in core
f - for a function
pred - for a predicate
coll - for a collection
body - for macro bodys
name - symbol definition
params - bindings
Just my $.02
Sean
On Sep 18, 6:37 pm, CuppoJava wrote:
> John illustrates a common scenario
On Fri, Sep 18, 2009 at 6:37 PM, CuppoJava wrote:
>
> John illustrates a common scenario in Clojure. Clojure's built-in
> functions are tersely and sensibly named. The problem is that there is
> indeed a finite number of terse and sensible names... which bites you
> when you need some of those nam
My syntax highlighter makes it clear which symbols have similar names as
clojure.core fns or vars : I have somewhat enforced the conventions not in
the way to write the names (capitalized ..) but in the way to color them.
So it is really easy to catch a color in a function or let parameter ...
HTH
John illustrates a common scenario in Clojure. Clojure's built-in
functions are tersely and sensibly named. The problem is that there is
indeed a finite number of terse and sensible names... which bites you
when you need some of those names. Hence why in my code I have started
to just capitalize v
On Fri, Sep 18, 2009 at 4:45 PM, CuppoJava wrote:
> Hi,
> After I shot myself in the foot again this morning by naming one of my
> variables "cond" and then wondering why Clojure was complaining about
> a simple cond form, I thought why don't we have capitalization
> conventions that differ betwee
On Sep 18, 9:45 pm, CuppoJava wrote:
> After I shot myself in the foot again this morning by naming one of my
> variables "cond" and then wondering why Clojure was complaining about
> a simple cond form, I thought why don't we have capitalization
> conventions that differ between variables and fu