Hi!
It turned out that special forms are behaving strangely when you try
to redefine them.
For example,
(defn def [ more]
(println smth))
but when you try to use this function you'll got unexpected behavior.
(def 5) - you'll got an exeption
There is another situation when you use let.
(let
On 20 May 2010, at 08:03, Аркадий Рост wrote:
It turned out that special forms are behaving strangely when you try
to redefine them.
You can't redefine special forms. What you define in your examples is
the symbols that serve to identify special forms. But they indicate
special forms only
I thought I'd just share some thoughts on special forms...
2010/5/20 Konrad Hinsen konrad.hin...@fastmail.net
You can't redefine special forms. What you define in your examples is the
symbols that serve to identify special forms. But they indicate special
forms only when used in the first
this may help:
http://www.bestinclass.dk/index.clj/2009/12/clojure-101-getting-clojure-slime-installed.html
-doug
On May 17, 4:18 pm, Terrence Brannon scheme...@gmail.com wrote:
Hello, I wanted to try out Clojure. It was my understanding that
swank-clojure was a package GNU Emacs that would
Okay, yes, what you are asking is possible, and I know how to do it.
Of course, to see the compiled artifacts on the classpath, you'll have
to be running in a state that runs after they have been created. :-)
This shouldn't be terribly hard to do, but it's a bit arcane. I'll
see if I can make
Tracking this issue at http://code.google.com/p/sandflea/issues/detail?id=2
--
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
Hi! I have found two issues which stops me from using function
serializations.
(ns code.serialfn
(:refer-clojure :exclude (fn)))
(defn- save-env [env form]
(if env
`(let ~(vec (apply concat (for [[name local] env]
[name (.eval (.init local))])))
On 20 May 2010 11:42, Anders Rune Jensen anders.rune.jen...@gmail.com wrote:
The algorithm:
(defn change-state [cur-state]
(when ( (:value cur-state) 10)
(assoc cur-state :message danger, danger)))
How I'd have to write it when using an agent:
(defn change-state [cur-state]
On Thu, May 20, 2010 at 2:26 PM, Daniel Werner
daniel.d.wer...@googlemail.com wrote:
On 20 May 2010 11:42, Anders Rune Jensen anders.rune.jen...@gmail.com wrote:
The algorithm:
(defn change-state [cur-state]
(when ( (:value cur-state) 10)
(assoc cur-state :message danger, danger)))
How about two separate maven goals? One script goal that does the
current behaviour and shares vars, and one execute goal that can run
code from the project.
I imagine the execute goal would usually be used to call a single
function in the clj source files. To simply support this, the goal
could
Before anyone spends time investigating, this has been accepted as an issue:
https://www.assembla.com/spaces/clojure/support/tickets/353
My workaround for now is to use reify in place of deftype.
-Steve
On 20 May 2010, at 13:43, Steve Purcell wrote:
I'm loving protocols, but I keep having
On Wed, May 19, 2010 at 7:13 PM, braver delivera...@gmail.com wrote:
On May 18, 11:45 am, Christophe Grand christo...@cgrand.net wrote:
(defn sorted-by? [pred s]
(if-let [ns (next s)]
(let [[a b] s]
(and (pred a b) (recur pred ns)))
true))
(defn reps-sorted2? [dreps]
Hello,
I'm attempting to use some java classes in clojure, where I need
the clojure to be AOT compiled. I'm running into trouble with
accessing final methods in the superclass of genclass. Some code:
--= Hello.java =
package com.example;
public class Hello {
To All,
Has anyone yet ported clojure to the android cellphones at this
time ?? I want to develop applications for the Android cellphones by
utilizing a dialect of the lisp programming language
David
--
You received this message because you are subscribed to the Google
Groups Clojure
Hi David,
Check-out http://github.com/remvee/clojurehelloandroid
I'm surprised we don't hear more talk of people doing this. It's on my list
of things to do too (I just got an mp3 player that runs Android 1.6 and I'm
going to start with Remvee's Hello World example).
Rob
On Thu, May 20, 2010
Also see the tutorial:
http://riddell.us/ClojureAndAndroidWithEmacsOnUbuntu.html
On Thu, May 20, 2010 at 3:21 PM, rob levy r.p.l...@gmail.com wrote:
Hi David,
Check-out http://github.com/remvee/clojurehelloandroid
I'm surprised we don't hear more talk of people doing this. It's on my
list
Now that I've had more time to think about it, I think your original
idea should be the default, and only, behavior. Scripts should be
able to access dependencies of the project, and, if possible, the
compiled project classes as well (available after they are compiled).
The code I checked into
[Format recovered from top posting.
On Thu, May 20, 2010 at 3:21 PM, rob levy r.p.l...@gmail.com wrote:
On Thu, May 20, 2010 at 12:37 PM, David Blubaugh
davidblubaugh2...@gmail.com wrote:
Has anyone yet ported clojure to the android cellphones at this
time ?? I want to develop
I tried to use Long keys from the java.io.File/length method in a hash-
map and failed to retrieve values using them. sorted-map is fine. The
doc says hash-maps require keys that support .equals and .hashCode.
Doesn't Long support those or am I missing something else?
--
You received this
On May 20, 10:57 pm, Mibu mibu.cloj...@gmail.com wrote:
I tried to use Long keys from the java.io.File/length method in a hash-
map and failed to retrieve values using them. sorted-map is fine. The
doc says hash-maps require keys that support .equals and .hashCode.
Doesn't Long support those
20 matches
Mail list logo