Salut Laurent,
Am Sonntag, 4. September 2011 21:51:20 UTC+2 schrieb lpetit:
>
> Interesting!
>
> I don't see the link between the README page and the currrent state of the
> API, though. Is the README ahead of time, or is the design it is describing
> an intermediate state which should be remove
Thank you, it seems obvious now that you say it.
On Sep 4, 11:02 pm, Chris Granger wrote:
> Try (aget (.attributes myelement) "data-url")
>
> Cheers,
> Chris.
>
> On Sep 4, 8:52 am, rdunklau wrote:
>
>
>
>
>
>
>
> > Hello.
>
> > I'm trying to use clojuresript in the browser, and I'm having troub
On Sun, Sep 4, 2011 at 9:50 PM, Alan Malloy wrote:
> Are we catering to the crowd who (1) wants to try Clojure, and (2)
> doesn't have a text editor with copy/paste on their system?
Well, in the original context a Unix commandline environment was being
suggested as well, which means no global cli
On Sep 4, 6:00 pm, Ken Wesson wrote:
> On Sat, Sep 3, 2011 at 2:11 AM, Kevin Downey wrote:
> > The idea that the way to get started is with a fancy editor and a
> > fancy ide is just crazy. The way to get started with Clojure is: write
> > functions, and run them, and be happy. None of that requi
On Sat, Sep 3, 2011 at 2:11 AM, Kevin Downey wrote:
> The idea that the way to get started is with a fancy editor and a
> fancy ide is just crazy. The way to get started with Clojure is: write
> functions, and run them, and be happy. None of that requires any of
> the mandated complications that c
On Sat, Sep 3, 2011 at 1:30 PM, Despite wrote:
> So, you want to make sure each value in the vector is unique? My
> first thought was to put them into a set, then see if the set was
> equal to the vector, but clojure's equality doesn't allow for that.
> And if you put the set back into a vector,
Oh nice one. I'm going to finish this sprint, then do a second pass over
this code base and refactor this and a few other issues.
Cheers
Tim
On Sun, Sep 4, 2011 at 6:46 PM, Sean Corfield wrote:
> On Sun, Sep 4, 2011 at 2:06 PM, Timothy Washington
> wrote:
> > That's interesting. When I try tha
On Sun, Sep 4, 2011 at 2:06 PM, Timothy Washington wrote:
> That's interesting. When I try that require A), I get the error in B). Seems
> that it's trying to find the commands.clj file.
Yes. If you look at how various projects work with multiple files in a
single namespace, I think they have a f
Hello,
I really enjoy clojure for back-end work and have been exploring using
clojurescript for the front end of an upcoming project.
Quickly you run into the issue of integrating external libs. From
reading the list and from Rich's cljs rationale, I gather that the
best practice is to use google
FYI, I spoke with Luc and told him I'm happy to have c.c.trace continue its
life if he or someone else will volunteer to maintain it. It will need some
changes to work with 1.3 because of how it uses `binding`, but that should
be possible using `with-redefs`.
-S
--
You received this message b
That's interesting. When I try that require A), I get the error in B). Seems
that it's trying to find the commands.clj file.
A)
ns bkell
(:import java.io.FileReader)
(:require domain)
(:require util)
* (:require commands)*
)
B)
Exception in thread "main" java.lang.RuntimeException:
*java.i
Try (aget (.attributes myelement) "data-url")
Cheers,
Chris.
On Sep 4, 8:52 am, rdunklau wrote:
> Hello.
>
> I'm trying to use clojuresript in the browser, and I'm having trouble
> accessing object attributes with dashes in it.
> For example, I'd like to access the data-url attribute of a DOM
>
On Sun, Sep 4, 2011 at 1:20 PM, Timothy Washington wrote:
> I was hacking away at this at the meantime. I defined 'remove' functions in
> 2 other places - bkell , commands. I ended up renaming commands/remove to
> commands/removek, and now all invocations are working. But I'm pretty sure
> I'm usi
On Sun, Sep 4, 2011 at 12:59 AM, Alan Malloy wrote:
> Well, ^something still is equivalent to ^{:tag something}, which as I
> understand it is useful for compiler typehinting.
It's probably also worth noting that metadata combines in 1.3.0:
(defn ^:foo ^:bar fubar [] )
In 1.2.1, this gives:
us
The README represents an early draft before simplicity ensued :)
FWIW, here's how it's used in Seesaw:
https://github.com/daveray/seesaw/wiki/Resource-bundles-and-i18n
Dave
On Sun, Sep 4, 2011 at 3:51 PM, Laurent PETIT wrote:
> Interesting!
> I don't see the link between the README page and the
Hey, thanks for getting back to me.
I was hacking away at this at the meantime. I defined 'remove' functions in
2 other places - bkell , commands. I ended up renaming *commands/remove* to
*commands/removek*, and now all invocations are working. But I'm pretty sure
I'm using namespace and require e
> i started with a tic tac toe implementation, but i'm stuck:
I used the same example problem last year to teach Clojure to two
people that were new to programming. Hopefully you'll find their code
helpful.
https://github.com/algarete13/tic-tac-toe
--
You received this message because you
On Sun, Sep 4, 2011 at 11:40 AM, Dennis Haupt wrote:
>> - Nested defns are not good.
> why? imo, nested function/method definitions are a tool to fine-tune
> accessibility. just like public/private, but much more powerful. why
Right, but defn binds function names at the top-level (which is why
it
On Sun, Sep 4, 2011 at 11:37 AM, Timothy Washington wrote:
> (ns bkell
> (:import java.io.FileReader)
> (:require commands.add)
> (:require commands.update)
> (:require commands.get)
> (:require commands.remove)
> (:require commands.authenticate)
> (:require domain)
> (:require uti
On Sun, Sep 4, 2011 at 7:15 AM, cri wrote:
> Is there a list of everything new in 1.3? Thanks
Looks like four commits since beta2:
https://github.com/clojure/clojure/commits/master
load resources when baseLoader() is null, refs #673
CLJ-815 de-alpha docstring for juxt
CLJ-736 docfix
add equiv o
Interesting!
I don't see the link between the README page and the currrent state of the
API, though. Is the README ahead of time, or is the design it is describing
an intermediate state which should be removed ?
Cheers,
--
Laurent
2011/9/4 Meikel Brandmeyer
> Dear international Clojurians,
>
Dear international Clojurians,
I'd like to announce j18n. A small wrapper around ResourceBundles to provide
easy internationalization of Clojure applications. j18n will power the i18n
features of the upcoming seesaw release.
The interface consits (at the moment) of a single function: resource.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am 04.09.2011 19:04, schrieb Luc Prefontaine:
> Have a look at reduce:
>
> (reduce conj [] (take 9 (cycle [0])))
>
> take returns a lazy seq. but reduce will return you a vector.
>
> Looks like you try to translate as if you were using a language
>
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Am 04.09.2011 19:08, schrieb Justin Kramer:
> On Sunday, September 4, 2011 12:21:23 PM UTC-4, HamsterofDeath
> wrote:
>
> * in the last loop where i am just printing out what i want to do,
> i need something like "foldLeft" (from scala). how do i fold
Hi all,
I have an annoying namespacing issue. I have a sort of command-wrapper that
require's in all other commands fine: add, get, etc. But when I call
(:require commands.remove), I get the error:
$ lein test my-test
...
clojure.lang.Var.applyTo (Var.java:518)
clojure.main.main (main
Hello.
I'm trying to use clojuresript in the browser, and I'm having trouble
accessing object attributes with dashes in it.
For example, I'd like to access the data-url attribute of a DOM
element, but the compiler compiles (.data-url (.attributes myelement))
to myelement.attributes.data_url.
Is t
Is there a list of everything new in 1.3? Thanks
On Sep 2, 9:46 pm, Christopher Redinger wrote:
> Clojure 1.3 Beta 3 is now available at
>
> http://clojure.org/downloads
>
> The list of changes:
> * Load resources when baseLoader() is null (CLJ-673)
> * Equiv overload added for primitive boolean
Basically, the problem I get is due to version conflict between
swank-clojure and slime, I download the same version as swank-clojure, that
is, 20100404, then it works.
On Sun, Sep 4, 2011 at 8:19 AM, myriam abramson wrote:
>
> Thanks. I am getting some slime errors unfortunately. I'll have to t
Dennis, may I suggest you to read this great article on Clojure:
http://java.ociweb.com/mark/clojure/article.html
--
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 me
On Sunday, September 4, 2011 12:21:23 PM UTC-4, HamsterofDeath wrote:
>
> * in the last loop where i am just printing out what i want to do, i
> need something like "foldLeft" (from scala). how do i fold in clojure?
>
doseq is the way to iterate over a collection and perform side effects:
(let [mo
Have a look at reduce:
(reduce conj [] (take 9 (cycle [0])))
take returns a lazy seq. but reduce will return you a vector.
Looks like you try to translate as if you were using a language that allows
mutations but you use functions to hold values that you redefine since mutation
is restricted
t
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
solved my last problem, and now i'm stucker than before:
(def open 0)
(def p1 1)
(def p2 2)
(def emptyfield [open open open open open open open open open])
(defn updated [seq index replacement]
(concat
(take index seq)
[replacement]
(dr
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
i started with a tic tac toe implementation, but i'm stuck:
(def open 0)
(def p1 1)
(def p2 2)
(def emptyfield [open open open open open open open open open])
(defn updated [seq index replacement]
(concat
(take index seq)
[replacement]
Sicp, the little schemer, seasoned schemer,norvigs paradigms of AI
programming. Seibels practical common lisp. Let over lambda. More Cl
specific is Sonja Kleenex PO programming in Cl or the metaobject protocol.
And there's more
On Sep 4, 2011 4:48 AM, "octopusgrabbus" wrote:
> I have seen the thr
On Sep 4, 12:54 am, Meikel Brandmeyer wrote:
> Hi,
>
> Am 03.09.2011 um 23:12 schrieb Alan Malloy:
>
> > Huh, interesting. I assumed ^:foo meta syntax was new to 1.3, and
> > wouldn't compile at all in 1.2. But now I see that in 1.2 it's
> > equivalent to ^{:tag :foo} - not useful, but not damagin
Hi,
Am 03.09.2011 um 23:12 schrieb Alan Malloy:
> Huh, interesting. I assumed ^:foo meta syntax was new to 1.3, and
> wouldn't compile at all in 1.2. But now I see that in 1.2 it's
> equivalent to ^{:tag :foo} - not useful, but not damaging either. I
> guess I'll start using ^:dynamic myself.
#^
36 matches
Mail list logo