Hi Rick,
I think we've both encountered the same concerns with coding style in
Clojure. I can't really say which is better - a large list of
conditions or a mutually recursive implementation. I have a feeling
that it depends on your fluency in functional languages. For me, I'm
relatively new to t
Hi Kai,
2009/7/2 Kai :
> @Rick
>
> I got fairly far into this before I had problems with stack overflows.
> I found out later than I needed knowledge of trampoline and mutual
> recursion to solve the issue. I think the approach still has potential
> but the setback forced me to consider other opt
Thanks Kai.
FYI, concerning your question about EPL, generally a slightly modified
version of this (the modification being putting your own name) is put
on top of clojure source code files :
; Copyright (c) Rich Hickey. All rights reserved.
; The use and distribution terms for this software are
Hey Laurent,
I went ahead and finished the modifications I wanted to make. The
source code will now correctly highlight any function that begins with
def and underline any code that follows that was defined by that
function. It looks much better :)
I looked into Google Code but it seems like too
OK I understand now. I didn't have something like that in mind.
Regards,
--
Laurent
2009/7/2 Kai :
>
> Hey Laurent,
>
> I had stack overflows because I had functions set up like this:
>
> (defn parse-code [original-code formatted-code main-loop?] ... )
> (defn format-list [original-code format
Hey Laurent,
I had stack overflows because I had functions set up like this:
(defn parse-code [original-code formatted-code main-loop?] ... )
(defn format-list [original-code formatted-code] ... )
(defn format-string [original-code formatted-code] ... )
Now, whenever parse-code sees an opening
On Thu, 2 Jul 2009 08:15:32 -0700 (PDT)
Kai wrote:
> I haven't placed the code anywhere other than on my server. It was
> just an experiment in Clojure but I'm glad it's useful to others. I'll
> go ahead and make it open source and let you know when I do. It should
> be relatively robust as it i
Hi Kai,
2009/7/2 Kai :
>
> Hi all,
>
> @Laurent
>
> I haven't placed the code anywhere other than on my server. It was
> just an experiment in Clojure but I'm glad it's useful to others. I'll
> go ahead and make it open source and let you know when I do. It should
> be relatively robust as it is
Hi all,
@Laurent
I haven't placed the code anywhere other than on my server. It was
just an experiment in Clojure but I'm glad it's useful to others. I'll
go ahead and make it open source and let you know when I do. It should
be relatively robust as it is -- I ran it through some of the src
Cloj
2009/6/26 Kai :
>
> Hi all,
>
> I'm new to this discussion group and Clojure. I'm sharing the first
> "bigger-than-REPL" script that I've written because I haven't seen
> anything else like it for Clojure. It's a script that takes Clojure
> code as input and generates a pretty HTML version. You ca
Hi,
Did you place the code somewhere in a public repo on github, google
code, svn, bitbucket or whatever ? (so that it is easy to track
changes ?).
Anyhow, is it possible to reuse your code ? I'm evaluating several
ways of starting code for doing formatting for the clojure plugin for
eclipse, an
Hey Chouser,
I did copy from clojure.contrib.duck-streams and originally had a
comment in there as regards to that. It got removed over clean-up
iterations, I'll put it back on there. I must learn to be more formal
when I publicly release code :)
Thanks for the tips on sets! Originally those fu
On Fri, Jun 26, 2009 at 5:12 PM, Kai wrote:
>
> I'm new to this discussion group and Clojure.
Welcome!
> I'm sharing the first
> "bigger-than-REPL" script that I've written because I haven't seen
> anything else like it for Clojure. It's a script that takes Clojure
> code as input and generates
Hey Sam,
I'm glad you were able to refactor the code, I had a fear that it was
too unreadable.
There were several other bugs in that version that you should know of:
- First version didn't use StringBuilder, which accounted for very
slow times.
- Semicolons aren't handled correctly in code and c
Thanks for doing this.
I think I fixed one bug so wanted to mention it. In your html-post-
format function, you have a string that creates the first . It
has a explicit style set to have a font-family: courier new and a font-
size of 14px. I took those styles out so that the style sheet
contro
Thanks a lot!
--~--~-~--~~~---~--~~
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
I fixed a bug that messed up spacing (ampersands weren't converted in
html-pre-format), so be sure to use the latest version.
Of course, feel free to use it on your webpage!
~ Kai
On Jun 26, 9:09 pm, CuppoJava wrote:
> Hi Kai,
> That is really cool! Do you mind if I use it on my webpage?
>
> A
Hi Kai,
That is really cool! Do you mind if I use it on my webpage?
As for coding style, I must say that yours is very clear. It was very
easy to read through the whole thing.
-Patrick
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
> I'm new to this discussion group and Clojure. I'm sharing the first
> "bigger-than-REPL" script that I've written because I haven't seen
> anything else like it for Clojure. It's a script that takes Clojure
> code as input and generates a pretty HTML version. You can view it
> here (I ran the sc
Hi all,
I'm new to this discussion group and Clojure. I'm sharing the first
"bigger-than-REPL" script that I've written because I haven't seen
anything else like it for Clojure. It's a script that takes Clojure
code as input and generates a pretty HTML version. You can view it
here (I ran the scr
20 matches
Mail list logo