On Tue, 29 Jun 2010 11:15:40 -0400
Lee Spector <lspec...@hampshire.edu> wrote:

> 
> On Jun 29, 2010, at 10:26 AM, Mike Meyer wrote:
> > Actually, have you looked at jedit? It's the only free Java editor
> > that isn't trying to be an IDE.
> 
> Thanks for this tip. I didn't know about jedit. I've grabbed it and see that 
> it has a built-in Clojure mode. Promising! Its idea of proper Clojure 
> indentation seems pretty nutty to me (you may have to view this in a 
> monospace font to see how odd it is):
> 
> (defn bar 
>       "check out the formatting of the let and the placement of the last line"
>       []
>       (let [x 1
>               y 2
>               z 3]
> (list x y z)))
> 
> It gets weirder for some of my more complicated definitions.
> 
> But maybe I can tweak the settings to get something more reasonable (I've 
> only tried for a minute so far).

The cross-platform editor is the only thing for the package you want
that I couldn't just grab off the net. Unfortunately, the version that
installs from ports locally doesn't have a clojure mode.

> > I think you're asking to much for the first step. They don't need
> > clojure-specific indentation; they just need a simple-minded
> > autoindent and paren matching. Those should be available in pretty
> > much any editor. Clojure-specific is nice, but they can correct it by
> > hand trivially.
> 
> Over many years of teaching Lisp to beginners the single most effective 
> debugging advice I've given is "first auto-indent it and then the error may 
> become obvious." Of course that works only for certain syntax errors but that 
> covers a lot of territory for beginners, and even helps me as a Lisper with 
> many years of experience. Correcting indentation by hand is easy when your 
> code is correct and you know what you're doing. Language-specific indentation 
> is really helpful when it's not already correct or you're just learning.

I use paren matching for that. Go to the end of the function, and walk
through the close parens, checking that they match what I think they
should. Repeat for each line that ends in more than two parens. It's
more work than the autoindent, but provides more data.

> > If that's the case, is there some reason you haven't created this? I'd
> > be more than happy to provide web space for it if you need it.
> Because I don't know how, and I'm writing here because I know that many 
> people here do know how and have already done 90+% of the work. I can write 
> you a quantum computer simulator or an AI search engine or a genetic 
> programming engine or an ecological simulator or many other things in many 
> languages including Lisp and Clojure, but writing and packaging 
> cross-platform editors and development tools just isn't in my bag of tricks 
> right now. I know it could be, and maybe some day I'll acquire those skills, 
> but many others are already quite good at this stuff and have gone to 
> considerable effort to create environments that provide almost all of what I 
> want. So I figure it's a service to give my perspective on what small tweaks 
> would make their efforts reach a wider audience.

Fair enough. Given the Jar files, it's relatively easy. You need to 1)
install the requisite jar files in a to-be-determined location, and 2)
tweak the batch scripts to know where you put the jar files, then
install them somewhere where they'll be found by the users command
processor. Do you think it's to much to require they get the JVM
somewhere else, or should that be part of the bundle as well?

    <mike
-- 
Mike Meyer <m...@mired.org>             http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.

O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

-- 
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