Benny Tsai benny.t...@gmail.com writes:
There's while in clojure.core; would that work?
That would be cheating:
--8---cut here---start-8---
user (macroexpand '(while (foo) (bar)))
(loop* [] (clojure.core/when (foo) (bar) (recur)))
--8---cut
I agree with the other commenters that letfn is good when you can use
it, but here you can't use it. Your general approach is really the
best you can do, though it's nicer to use promise/deliver than atom/
swap!, since these values are never going to change again.
I was looking for something
Thanks for replies!
I've created a group at https://groups.google.com/forum/#!forum/clojure-at
Feel free to join :)
Best,
Jozef
On Tuesday, May 29, 2012 7:20:02 PM UTC+2, bsmith.occs wrote:
I too am in Vienna. I use Clojure at work for a few small internal
tools, but not in production.
There was a How to build communities session at EuroClojure. In
summary:
- Just get going. Find some people (with 3 your already a group), find a
place (like a pub for starters) and meet. You'll like it!
- Meet regularly e.g. monthly.
- If you want to do some coding and your group grows, find a
Brian Taylor has put together a pretty awesome resource for tracking
ClojureScript performance: http://50ply.com/cljs-bench
If there's a particular aspect of your ClojureScript application that
you're finding unbearably slow you can contribute a benchmark here:
It sounds to me like you're using a plain JavaScriupt file as an externs
definition. If that's the case, one way to get rid of the warnings is to
clean up the externs file so that it only contains the function/variable
names that are meant to be publicly used. As an example, here's the
I see a lot of clojure libraries use the pattern where an implicit
variable is stored as a dynamic variable. A good example is
clojure.java.jdbc:
(require '[clojure.java.jdbc :as sql])
(sql/with-connection db-spec
sql code here)
What do I do if I have to instantiate two things that uses the
David,
I am depending on lein-cljsbuild 0.1.10
I am compiling by typing lein cljsbuild once
This is the content of my project.clj's cljsbuild section:
:cljsbuild {:crossovers [rpc.tree]
:builds [{:source-path src/rpc/client
:compiler {:output-to
On Wed, May 30, 2012 at 3:26 PM, Gerrard McNulty
gerrard.mcnu...@gmail.com wrote:
I see a lot of clojure libraries use the pattern where an implicit
variable is stored as a dynamic variable. A good example is
clojure.java.jdbc:
I wouldn't say it's a good example. It's certainly an example of
What do I do if I have to instantiate two things that uses the same
dynamic binding at the same time. Using the java.jdbc example, what
if I wanted to run multiple selects from db-1 and insert each result
into db-2? Do I need keep calling (sql/with-connection db-2 ...)
after each select
Unfortunately, I have not been able to find even a decent resource on the
general topic of creating extern definition files. So, please take this
with a grain of salt, and let's hope someone more knowledgeable can come
along and clear things up.
My belief is that using an unmodified JS file
I also meant to mention that there are a ton of knobs on the closure
compiler that are not exposed by the ClojureScript compiler. This is
something I'd like to improve (or see improved) at some point, but it's a
tricky problem, due to the vast number of options [1]. I expect the only
way to
12 matches
Mail list logo