>
> Reader errors don't tell you the name of the file that had problems:
>
> eof.clj:
>
> (defn foo [a]
> (println "hello")
>
> $ java -cp clojure.jar clojure.lang.Repl eof.clj
> java.lang.Exception: ReaderError:(3,1) EOF while reading
> at clojure.lang.LispReader.read(LispReader.java:
On Sep 18, 2008, at 12:34 PM, Rich Hickey wrote:
> Done, except catch and finally, which are sub-syntax of try, like &
> is for fn.
Thanks. I've uploaded specialdocs-2.patch.
Clojure
user=> (doc doc)
-
clojure/doc
([name])
Macro
Prints documentation for a var or spe
Hi all,
I was wondering if there was an idiomatic functional way to accomplish
the following:
We have some parameters, and we want to build a collection based on
those parameters. The collection could have as many as n items, and
whether and what items get added for each of the n possibilities
On Sep 18, 6:02 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote:
> On Sep 18, 2008, at 12:46 PM, Rich Hickey wrote:
>
> > Thanks Steve,
>
> > I'm willing to add this with a couple of changes:
>
> > You can def the vars in boot.clj, with no roots. Please provide doc
> > strings.
>
> > Lose *r,
On Sep 18, 8:51 am, noahr <[EMAIL PROTECTED]> wrote:
> Was the 'other side' (Berkely DB) in a separate process / machine? Or
> part of the same jvm?
Same JVM; I am running my Clojure application on the server and it
persists and retrieves data from Berkeley. It currently exposes an API
for a cl
Looks like the FrTime dissertation was published this year:
Integrating Dataflow Evaluation into a Practical Higher-Order Call-by-
Value Language
By Gregory Cooper
http://dl.lib.brown.edu/pdfs/etd67.20080429180432.pdf
A quote from it:
"A technique similar to that employed by FrTime has been use
Google often brings me to the cells website, but I haven't been able
to figure out what it exactly is, you are right about the
documentation.
Although, speaking of documentation, I wish clojure also had some
printable documents, tutorial which I could pack in my bag and read on
the train. The vi
On Sep 18, 2008, at 12:46 PM, Rich Hickey wrote:
> Thanks Steve,
>
> I'm willing to add this with a couple of changes:
>
> You can def the vars in boot.clj, with no roots. Please provide doc
> strings.
>
> Lose *r, it's not really useful
>
> In the Repl, push bindings for them (where ns is pushed
On Thu, Sep 18, 2008 at 1:12 PM, Stuart Sierra
<[EMAIL PROTECTED]>wrote:
>
> On Sep 17, 2:00 pm, Rich Hickey <[EMAIL PROTECTED]> wrote:
> > > Is there any effort to bring FRP (FrTime, Yampa, etc.) library to
> > > Clojure?
> >
> > I don't know of any yet. There is a CL package, Cells, that might m
On Sep 17, 2:00 pm, Rich Hickey <[EMAIL PROTECTED]> wrote:
> > Is there any effort to bring FRP (FrTime, Yampa, etc.) library to
> > Clojure?
>
> I don't know of any yet. There is a CL package, Cells, that might make
> sense for Clojure, esp re: spreadsheet-like behavior.
Cells is an awesome pack
On Thu, Sep 18, 2008 at 7:11 AM, Stuart Sierra
<[EMAIL PROTECTED]>wrote:
>
> On a related note, would it be possible to implement atomic, system-
> wide transactions by suspending the current computation, replacing
> some root bindings, and continuing? How do long-running systems like
> Erlang ha
> How do long-running systems like
> Erlang handle this problem?
iiuc, erlang doesn't have transactions so it is a different situation.
when you redefine a function, the next time the (standard approach to
writing erlang actors) tail call goes back into the function it will
be actually going into
On Sep 18, 2008, at 12:36 PM, Allen Rohner wrote:
> I completely agree that users should read the site, but can we make
> the special form doc just include a reminder of the syntax and then
> link to the site? i.e.
>
> user=> (doc if)
> -
> (if test then)
> (if test then e
On Sep 13, 1:59 pm, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote:
> On Sep 13, 2008, at 12:14 PM, Rich Hickey wrote:
>
> > I suggest using keywords for commands. They evaluate to themselves and
> > there is no purpose to entering them at the repl otherwise (other than
> > demonstrating that ke
>
> > There's simply no substitute for reading the special forms page on the
> > site, and everyone who intends to use Clojure should do so in its
> > entirety.
>
> > If we want to make it so (doc def) et al do something, they should
> > return the simple message:
>
> > Please see:http://clojure.
On Sep 18, 11:47 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote:
> On Sep 18, 2008, at 7:52 AM, Rich Hickey wrote:
>
>
>
> > I'm not in favor of doing it this way, for several reasons. First,
> > there needs to be one place for canonic docs for each thing. For
> > functions and macros, that'
Ok, I have a new one.
Reader errors don't tell you the name of the file that had problems:
eof.clj:
(defn foo [a]
(println "hello")
$ java -cp clojure.jar clojure.lang.Repl eof.clj
java.lang.Exception: ReaderError:(3,1) EOF while reading
at clojure.lang.LispReader.read(LispReader.ja
> I've made some enhancements to the location info (rev 1031), see if
> that helps.
>
> Rich
This looks good. Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email
On Sep 18, 2008, at 7:52 AM, Rich Hickey wrote:
> I'm not in favor of doing it this way, for several reasons. First,
> there needs to be one place for canonic docs for each thing. For
> functions and macros, that's the inline docs, from which the API page
> on the site is generated. For special
On Sep 17, 11:31 pm, Joubert Nel <[EMAIL PROTECTED]> wrote:
> Deferred evaluation/execution got me here.
Hi Joubert,
This is probably the most common "gotcha" in Clojure. I think anyone
who uses Clojure writes this kind of bug sooner or later. :)
-Stuart
--~--~-~--~~~-
On Sep 17, 7:13 pm, Rich Hickey <[EMAIL PROTECTED]> wrote:
> Unfortunately not. If you want to see a consistent view of a set of
> refs you must be in a transaction, and it's not workable to require
> all fn calls be in transactions.
More speculation, again just out of curiosity: Say you have a
On Sep 17, 9:15 pm, Allen Rohner <[EMAIL PROTECTED]> wrote:
> Ok, concrete.
>
> Here's one mistake I made the other day. I created a ref, and then
> forgot to access it using @. The example code is
>
> (def my_map (ref {:a 1, :b 2}))
> (def map_vals (vals my_map))
>
> $ java -cp clojure-clean.ja
Was the 'other side' (Berkely DB) in a separate process / machine? Or
part of the same jvm?
If separate, what clojure knowledge / libraries did the other side
have? I assume there was serialization across or else you wouldnt have
gotten the PersistentMap error.
And sounds like your passing the CLA
On Sep 18, 2:58 am, "Stephen C. Gilardi" <[EMAIL PROTECTED]> wrote:
> This patch makes clojure/doc and clojure/find-doc operate on special
> forms as well as vars. I'm enclosing it with this message, but if that
> doesn't work I'll upload it to the group's file section as
> "specialdocs.tgz". Th
24 matches
Mail list logo