Wolodja, hello.
On 2012 Jan 11, at 16:34, Wolodja Wentland wrote:
> I've stumbled over varargs in Clojure before and Alan Malloy came up with a
> nice solution [0] which I expanded slightly:
>
> --- snip ---
> (defmacro real-varargs [method required-count & array-type]
> (let [args (repeatedly
Greetings.
I'm not understanding proxies. Can anyone advise me what I'm missing?
I try the following:
user=> (def m (proxy [java.util.HashMap] []
(finalize []
;(proxy-super finalize)
(prn "finalizing..."))
(hashCode []
99)))
#'user/m
user=> (.
Hi,
In my browser repl, which follows the ClojureScript wiki[1], I must
specify variables with namespace even if `in-ns` is used, but I
noticed that I don't have to do in the repl of ClojureScript One[2].
Am I the only one who cannot access variables without namespace?
What makes the diffirence?
native = not high level
Am 14.01.2012 16:43, schrieb Joseph Smith:
> How about a native I/O library that'll detect the platform and architecture
> at runtime? Something like java 1.7's nio, but they'll work on clojure hosted
> on 1.5.x? Make use of JNA to make native calls to get file system det
On Sun, Jan 15, 2012 at 01:37, James Reeves wrote:
> On 14 January 2012 23:34, myriam abramson wrote:
>> I couldn't find quite the equivalent to read-lines from duck-streams. I
>> found read-line but it's not the same. Where is the equivalent read-lines
>> outside of clojure.contrib?
>
> There's
I think the problem here is with the ClojureScript REPL and single-
segment namespaces.
We found a couple of problems with the ClojureScript REPL while
working on One and will address them soon. If you confirm that this is
the problem, please let us know. Also, feel free to add an issue to
JIRA wi
Hi Brenton,
Unfortunately two segment namespaces also causes the same problem.
However, I've found that this problem can be avoided by using `ns`
instead of `in-ns`.
Thanks!
2012/1/15 Brenton :
> I think the problem here is with the ClojureScript REPL and single-
> segment namespaces.
>
> We foun
On Sun, Jan 15, 2012 at 6:52 AM, Norman Gray wrote:
>
> Greetings.
>
> I'm not understanding proxies. Can anyone advise me what I'm missing?
>
> I try the following:
>
> user=> (def m (proxy [java.util.HashMap] []
> (finalize []
> ;(proxy-super finalize)
> (prn "finali
Cedric, hello.
On 2012 Jan 15, at 20:32, Cedric Greevey wrote:
> On Sun, Jan 15, 2012 at 6:52 AM, Norman Gray wrote:
>> user=> (def m (proxy [java.util.HashMap] []
>>(finalize []
>> ;(proxy-super finalize)
>> (prn "finalizing..."))
>>(hashCode []
>> 9
Manjo,
I think there is considerable benefit in keeping certain APIs similar
between ClojureScript and Clojure. In places where the intent is the
same I would suggest going with a familiar API. I took this approach
with enfocus by basing it on enlive. It sped up my development
because I didn't h
Something got me thinking about the hashes of sequences, and I
realized there would be an efficiency tradeoff there. The hash ought
to depend on at least some of the head elements of the seq, or hash
lookup efficiency goes to hell when seqs are used as map keys or in
sets. The more elements of the
Andrew writes:
> or is M-x slime-compile-and-load-file the wrong command to use?
You should use C-c C-k for most compilation. If you want to force a
reload of all the required namespaces, you can use C-c C-l instead. I've
never heard of either of these affecting completion though.
-Phil
--
Y
I can't even call `(js/alert "test")' in IE 9, it compiles into:
alert.call(null,"test");
and says: "Invalid calling object" (IE 9 standards mode, in IE 8
standards mode it doesn't recognize the `call' method)
I need `alert' to debug some other glitch which arises in IE 9 (but
all works fine in
13 matches
Mail list logo