On Mon, Mar 22, 2010 at 7:42 AM, Paul Ingles p...@forward.co.uk wrote:
I'm trying to find a way of ensuring that when the Clojure runtime
kicks in the class loader can be bound to something provided from the
Java adapter side (see
On Sun, Sep 27, 2009 at 12:55 AM, Mark Derricutt m...@talios.com wrote:
How are people handling mocking/stubbing in clojure?
For mocking clojure code, I would have a look at clojure.contrib.mock (1). I
haven't used it, but plan to check it out soon. Recently, while doing some
performance
On Thu, Sep 10, 2009 at 1:20 PM, Seth Burleigh s...@tewebs.com wrote:
Ah. So class returns the class of the instance, and does not find the
class with the name given.
Yes.
So , if I wanted to get the class of a ExecutionEvent, I would
Have to go (Class/forName
On Fri, Sep 4, 2009 at 3:35 AM, Fredrik Appelberg
fredrik.appelb...@gmail.com wrote:
On Fri, Sep 4, 2009 at 3:58 AM, J. McConnell jdo...@gmail.com wrote:
On Thu, Sep 3, 2009 at 12:40 PM, Fredrik Appelberg
fredrik.appelb...@gmail.com wrote:
I've just released the first tentative version
On Thu, Sep 3, 2009 at 12:40 PM, Fredrik Appelberg
fredrik.appelb...@gmail.com wrote:
I've just released the first tentative version of Clojureshell. It's a
simple maven plugin that allows you to easily start a clojure REPL or run a
Swank server in the context of any maven project.
This
On Sun, Aug 30, 2009 at 10:15 AM, Ivan Chernetsky ivan.chernet...@gmail.com
wrote:
Either of clojure/core.clj and clojure/core__init.class is on
classpath, I think. What am I doing wrong?
Hmmm ... This builds fine for me (with the inclusion of
namespaceedn.main/namespace in the
On Sun, Aug 30, 2009 at 1:02 PM, Ivan Chernetsky
ivan.chernet...@gmail.comwrote:
2009/8/30 J. McConnell jdo...@gmail.com:
What versions of Clojure and Clojure-Contrib are you using?
The freshest ones.
This appears to be the problem. If I use the HEAD version of Clojure, I get
the same
+1
On Fri, Aug 28, 2009 at 4:27 AM, Mike Hinchey hinche...@gmail.com wrote:
I have a suggestion for the with-open macro. It calls .close when it's
finished. I'd like it to have a (defmulti close type) so it's behavior is
extensible. A standard method could be defined for java.io.Closeable
On Aug 28, 2009, at 11:55 PM, Vagif Verdi vagif.ve...@gmail.com wrote:
I often refactor my code and move some functions to new modules.
Unfortunately i cannot load them, because clojure says that function
with such name is already loaded from another namespace. I could not
find nothing
On Tue, Aug 25, 2009 at 10:24 AM, Licenser heinz.g...@gmail.com wrote:
I wonder what is the reason clojure uses XML standard wise and not
JSON.
I don't think Clojure has standardized in any way on XML. There just happens
to be an XML parsing lib in Clojure proper because it's a useful thing
On Tue, Aug 18, 2009 at 7:37 PM, Sean Devlin francoisdev...@gmail.comwrote:
user= (filter #{false} [true false false true])
()
Obviously, this is not what I intended. The best I could do was the
following
user= (filter (comp not nil? #{false}) [true false false true])
(false false)
On Mon, Aug 17, 2009 at 1:56 PM, Mark Volkmann r.mark.volkm...@gmail.comwrote:
Does Clojure STM eliminate the possibility of deadlock? When two
transactions have a contention for the same Ref, Clojure gives
preference to the transaction that has been running the longest
(unless it has only
On Fri, Aug 14, 2009 at 1:04 AM, Krukow karl.kru...@gmail.com wrote:
When running the AOT compiled Clojure (clojure.jar) on an Azul box I
get an error during startup (in particular in the class-initializer
for clojure.main). This error does not occur in the clojure-slim.jar.
The stacktrace
On Wed, Aug 12, 2009 at 4:00 AM, C. Florian Ebeling
florian.ebel...@gmail.com wrote:
Thanks for sharing this. What I miss a bit is the ability to set the
*compile-path* to something other than classes.
Thanks for your input! Yes, this was always planned, I just didn't have a
need for it.
On Mon, Aug 10, 2009 at 9:07 AM, Chas Emerick cemer...@snowtide.com wrote:
We have a couple of ant macros that do all of our clojure building for us
(including auto-detecting namespaces within source directories, compiling
only those clojure files that have changed since the last build, etc).
On Wed, Aug 12, 2009 at 12:03 PM, J. McConnell jdo...@gmail.com wrote:
On Wed, Aug 12, 2009 at 4:00 AM, C. Florian Ebeling
florian.ebel...@gmail.com wrote:
Thanks for sharing this. What I miss a bit is the ability to set the
*compile-path* to something other than classes.
Thanks
/spaces/clojure/tickets/168
Regards,
--
Laurent
2009/8/10 J. McConnell jdo...@gmail.com
Most of the Ant setups I've seen for building and testing Clojure code,
including some of my own, have suffered from the fact that compilation and
test failures still result in a Successful build
Most of the Ant setups I've seen for building and testing Clojure code,
including some of my own, have suffered from the fact that compilation and
test failures still result in a Successful build in Ant's eyes. This can
be confusing at best, but can cause real problems if you aren't paying close
On Wed, Jul 29, 2009 at 11:06 PM, John Harrop jharrop...@gmail.com wrote:
How about defining seqable? in terms of whether seq works, using try catch?
I think this is the only DRY way to do it, but I know Rich has expressed in
the past the he does not approve of using exception handling as a
No, this is not currently possible. One problem is that in a call like (foo
bar), it is not possible at compile time to determine bar's type and it may
very well be an impure function.
Regards,
- J.
On Mon, Jul 27, 2009 at 10:30 AM, André mestrero...@gmail.com wrote:
Hi to everyone, it's my
On Thu, Jul 9, 2009 at 11:31 PM, Mark Engelbergmark.engelb...@gmail.com wrote:
I'm running Clojure 1.0.
Could someone please check and see whether this is still a bug in the
most current version?
Yup, I still see the same behavior in HEAD.
- J.
On Thu, Jul 9, 2009 at 7:56 PM, Conraddrc...@gmail.com wrote:
I'm trying to optimize an inner loop and need a variable that mutates
to make this work. It does NOT need to be a thread-safe variable.
What's the best way to create a plain ol' mutating variable in
Clojure? I know I can always
On Jun 27, 2009, at 12:28 PM, Four of Seventeen fsevent...@gmail.com
wrote:
On Jun 27, 1:53 am, CuppoJava patrickli_2...@hotmail.com wrote:
It was a server maintenance for wikispaces.org which is the hosting
site for the Clojure website.
But the Clojure website is clojure.org. NOT
On Wed, Jun 24, 2009 at 5:15 AM, Rock rocco.ro...@gmail.com wrote:
I have almost succeeded in convincing the company I work for here in
Italy to give Clojure a try, and see if it can be adopted for an
important project.
Now, the only problem is that, among other things, we need to
On Mon, Jun 22, 2009 at 7:15 AM, Thibaut Barrère
thibaut.barr...@gmail.com wrote:
I read that I should be able to change *compile-path* (I'd like to set
it to the same folder where the .clj files is).
Is it possible and how can I achieve that ?
Yup, you can either using binding to create a
On Thu, Jun 18, 2009 at 7:30 PM, Howard Lewis Ship hls...@gmail.com wrote:
I have code that gets passed a map (actually a struct-map), should I
(my-map :my-key)
or
(:my-key my-map)
I'm beginning to gravitate towards the latter, as it is more tolerant of the
map being nil.
I tend to
On Wed, Jun 17, 2009 at 2:55 PM, vseguip vseg...@gmail.com wrote:
or is there a preferred way to communicate patches?
This is new:
http://clojure.org/patches
- J.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups
On Tue, Jun 16, 2009 at 12:18 PM, hari sujathan hari.sujat...@gmail.com wrote:
I was trying to look from some mathematical concepts by representing -
OOP's inheritance by tree/graph structurtes(tree for single , and
graph
for multiple inheritence) with classes acting as each node.
With
On Fri, Jun 12, 2009 at 12:35 PM, joshua-choi rbysam...@gmail.com wrote:
Is the function of the filter identity call to make (map
isInteresting pixels) a lazy sequence? I thought that the sequences
map returned were already lazy, but I could be mistaken.
I believe the idea is that mapping
On Sun, Jun 7, 2009 at 6:37 PM, Meikel Brandmeyer m...@kotka.de wrote:
Am 07.06.2009 um 17:41 schrieb Emeka:
And it took Meikel three weeks to make out time to talk to me.
Huh? Did I miss something?
Meikel,
You've been incredibly open and helpful on this list and we all appreciate
it.
On Mon, Jun 8, 2009 at 11:41 AM, tsuraan tsur...@gmail.com wrote:
I thought it might be fun to try out the new repl-utils expression-info
fn
on
this.
Is this just in source control, or is it in a release? I'm using
1.0.0, and I don't seem to have that function.
repl-utils is a
On Fri, Jun 5, 2009 at 2:09 PM, Ragnar Dahlén r.dah...@gmail.com wrote:
This turned out to be problematic since a couple of the commands have
the same names as some clojure.core functions, most notably get and
set.
I solved this by checking if *ns* already contained a mapping for the
name,
On Thu, May 28, 2009 at 4:23 PM, Perttu perttu.aur...@gmail.com wrote:
I use a store-function like this:
(defn store-customer-db [customer-db filename]
(spit filename (with-out-str (print customer-db
I believe this is your problem. The print/println functions print in a
format
On Wed, May 13, 2009 at 1:09 PM, Stephen C. Gilardi squee...@mac.com wrote:
On May 13, 2009, at 11:57 AM, Juergen Gmeiner wrote:
I don't think it would be a good idea to print out the coll in every
case - after all, it might be some
huge Java collection that somehow is not seq-able. But
On Tue, May 12, 2009 at 11:22 AM, samppi rbysam...@gmail.com wrote:
Oh, no...I understand now—it looks like I've incorrectly explained my
problem.
I want to use the macro like this: (a 1 2 3) equivalent to (m-seq [1 2
3]).
Clojure 1.0.0-
user= (use 'clojure.contrib.monads)
nil
user=
I guess only Rich can make the choice: statu quo, clojure (breaks
maven artifact id), clojure-lang (breaks build.xml).
Not that I have a strong stake in this, but I'd vote for going with
clojure and getting it right for 1.0.
- J.
--~--~-~--~~~---~--~~
You
On Fri, Jan 9, 2009 at 6:31 AM, Stuart Halloway
stuart.hallo...@gmail.com wrote:
From the docs: Keywords are like symbols, except ... They cannot
contain '.' or name classes ...
What goes wrong with a keyword that contains . or names a class?
Nothing blows up immdiately at the REPL:
On Mon, Dec 29, 2008 at 9:12 PM, Larrytheliquid
larrytheliq...@gmail.com wrote:
This is what I'm thinking, let me explain: http://gist.github.com/41468
(If you are familiar with RSpec, here is the equivalent RSpec example
http://rspec.info/examples.html)
I really like the look of this so
On Tue, Dec 23, 2008 at 10:15 AM, Adam Harrison (Clojure)
adam-cloj...@antispin.org wrote:
I have been trying to work out how best to validate the structure of
arguments passed into macros. It would appear that there are several
ways of tackling this and I was wondering which is considered
On Tue, Dec 23, 2008 at 1:38 PM, Meikel Brandmeyer m...@kotka.de wrote:
Am 23.12.2008 um 17:10 schrieb J. McConnell:
This was my intuitive guess as well. However, looking at condp, it
seems that Rich prefers (at least in that case) option 2 (note the (=
0 n) clause in the cond expression
On Sun, Dec 21, 2008 at 12:07 AM, Jason jawo...@berkeley.edu wrote:
Thanks all. The patch looks interesting to me, although I'd only use
it if it was integrated into the main build.
You and me both ;)
- J.
--~--~-~--~~~---~--~~
You received this message
On Mon, Dec 22, 2008 at 2:25 AM, Mark Engelberg
mark.engelb...@gmail.com wrote:
Aside from the memoization example for
which it was invented, I am hard-pressed to think of a good use for
atoms.
Not having used them myself, I can't think of many good examples
either. However, one in addition
On Mon, Dec 22, 2008 at 10:23 AM, Piotr 'Qertoip' Włodarek
qert...@gmail.com wrote:
Being new to Clojure, to Lisp and to functional programming in
general, I have some trouble wraping my head around it.
As the first exercice, I would like to print multiplication table of
specified order,
On Mon, Dec 22, 2008 at 11:10 AM, Rich Hickey richhic...@gmail.com wrote:
On Dec 22, 10:40 am, Mark Volkmann r.mark.volkm...@gmail.com
wrote:
On Mon, Dec 22, 2008 at 9:10 AM, Rich Hickey richhic...@gmail.com wrote:
On Dec 22, 8:55 am, Mark Volkmann r.mark.volkm...@gmail.com wrote:
I
On Wed, Dec 17, 2008 at 10:32 AM, Rich Hickey richhic...@gmail.com wrote:
The Clojure FAQ will be here:
http://code.google.com/p/clojure/wiki/FAQ
Suggestions for entries welcome here.
I recently found out about Google Moderator
(http://moderator.appspot.com/), which might be a good fit
On Tue, Dec 16, 2008 at 12:26 AM, Mon Key s...@derbycityprints.com wrote:
whoops, chopped of the end of that last message - forgot the nasake-no
ichigeki
user (seq? '(nil))
==|]==true
'(nil) is a list containing the single element nil. nil is no kind of
list whatsoever. So, (seq?
On Mon, Dec 15, 2008 at 7:33 PM, Rich Hickey richhic...@gmail.com wrote:
When pulling new Clojure from SVN, please do:
ant clean
ant
So you know you have a consistent build.
If the supported way to build Clojure is to clean before the build,
can we just have the init target depend on
On Tue, Dec 16, 2008 at 11:23 AM, Randall R Schulz rsch...@sonic.net wrote:
It is also the case that empty lists are self-evaluating:
user= ''()
(quote ())
user= '()
()
user= ()
()
Ahhh, good to know. Thanks!
- J.
--~--~-~--~~~---~--~~
You received
On Tue, Dec 16, 2008 at 11:59 AM, Mon Key s...@derbycityprints.com wrote:
This is why flatten's behavior was considered a bug. In Clojure, an
empty sequence is equivalent to nil, not to '(nil).
This does not comport with the various differences enumerated @
http://clojure.org/lisps
Perhaps
On Sun, Dec 14, 2008 at 3:24 PM, Michel Salim michel.syl...@gmail.com wrote:
My mistake; unchecked operations work just fine if their arguments
(including constants) are given type hints. What happens if unchecked-
add/sub/... is given an argument of unknown type, though? It still
seems to
On Sat, Dec 13, 2008 at 11:17 AM, Brian Doyle brianpdo...@gmail.com wrote:
I'm sure I'm doing something stupid but I can't start up gorilla.
Exception in thread main java.lang.NoClassDefFoundError: de/kotka/gorilla
Caused by: java.lang.ClassNotFoundException: de.kotka.gorilla
at
On Sun, Dec 7, 2008 at 10:51 AM, Stuart Sierra
the.stuart.sie...@gmail.com wrote:
As of clojure-contrib SVN 283, there's a new clojure.contrib.test-is.
This is a pretty major rewrite of the library. I've tried to
streamline the code and make it easier to plug in custom reporting and
On Fri, Dec 12, 2008 at 6:37 PM, Oscar Picasso oscarpica...@gmail.com wrote:
java.io.FileNotFoundException: Could not locate closure/
You've got cloSure instead of cloJure.
- J.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On Wed, Dec 10, 2008 at 2:08 PM, Stephen C. Gilardi [EMAIL PROTECTED] wrote:
Alternatively, we could make those hooks be functions that one can
(optionally) define in user.clj. The platform entry point would call them if
they exist:
(ns user)
(defn init
[]
(set! *compile-path*
On Wed, Dec 10, 2008 at 1:27 PM, Brian W [EMAIL PROTECTED] wrote:
Another issue I had is we don't have a good blanket term for Vars,
Refs, Agents, and Atoms. Rich sometimes calls them reference types,
but that term already has a different meaning in Java. I considered
meta-references, but
On Wed, Dec 10, 2008 at 3:35 PM, Chouser [EMAIL PROTECTED] wrote:
It's by no means emacs *or even vim* yet
Ouch, that hurts ;)
- J.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Clojure group.
To post to this
On Wed, Dec 10, 2008 at 4:06 PM, Chouser [EMAIL PROTECTED] wrote:
I'm a vim user, but although I don't envy the multitude of
configuration issues it sound like emacs/slime/swank users seem to
have, I'm certainly a bit envious of the deep integration between repl
and editor.
I wish Gorilla
On Tue, Dec 9, 2008 at 7:05 PM, Rich Hickey [EMAIL PROTECTED] wrote:
Thanks. I think it does a bit too much - I only want to relax the
requirement for namespace-qualification, not any of the other
assertions (e.g. that the participants are either Named or Classes,
can't be = etc).
Right,
On Mon, Dec 8, 2008 at 9:05 AM, Rich Hickey [EMAIL PROTECTED] wrote:
On Dec 7, 9:01 am, Mibu [EMAIL PROTECTED] wrote:
Is it possible to remove the asserts in derive that restrict the
parent and child to namespace-qualified names?
It would be much more useful if the asserts are moved to the
On Fri, Dec 5, 2008 at 9:22 AM, Randall R Schulz [EMAIL PROTECTED] wrote:
On Thursday 04 December 2008 23:23, Meikel Brandmeyer wrote:
Hi,
On 5 Dez., 00:38, Randall R Schulz [EMAIL PROTECTED] wrote:
And am I mistaken in my reading of the API docs for (defmulti ...)
and (defmethod ...) or
On Mon, Dec 8, 2008 at 5:35 PM, Chouser [EMAIL PROTECTED] wrote:
On Mon, Dec 8, 2008 at 3:40 PM, J. McConnell [EMAIL PROTECTED] wrote:
This is a breaking change for some (granted rather unsual) cases:
(defmulti foo {:a 1 :b 2})
(defmethod foo 1 [_] got a1)
(defmethod foo 2 [_] got b2
On Mon, Dec 8, 2008 at 9:24 PM, Stuart Sierra
[EMAIL PROTECTED] wrote:
On Dec 8, 3:53 pm, J. McConnell [EMAIL PROTECTED] wrote:
Great! Will the planned thrown-with-msg? support regex matching? I
used something like that in clojure.contrib.test-clojure.evaluation,
which was pretty handy
This looks awesome, great work Stephen!
On Wed, Dec 3, 2008 at 9:27 AM, Stephen C. Gilardi [EMAIL PROTECTED] wrote:
I was just about to do that, Randall. :-)
clojure.contrib.repl-ln is a repl that supports lines and line
numbers. Here's a session that demonstrates it.
--Steve
% java -cp
On Wed, Dec 3, 2008 at 3:10 PM, Randall R Schulz [EMAIL PROTECTED] wrote:
You're using a reader notation unrelated to regular expressions.
Instead, #(...) is a shorthand notation for an anonymous function
definition.
You can read more about the other reader macros here:
On Tue, Nov 25, 2008 at 12:06 PM, Perry Trolard [EMAIL PROTECTED] wrote:
Sorry -- inadvertent send: the Ant task is the first case that's gotta
work, so I think the best option is to catch the ClassNotFound
exception, unless there's another alternative I'm not thinking of
I don't have any
On Mon, Nov 24, 2008 at 6:46 PM, Randall R Schulz [EMAIL PROTECTED] wrote:
On Monday 24 November 2008 15:14, dokondr wrote:
And what is 'comp'?
When in doubt:
- Clojure native API
http://clojure.org/api
- comp
http://clojure.org/api#toc122
Or:
user= (doc comp)
In writing up tests for clojure.contrib.test-clojure that cover the
Evaluation page of clojure.org, I came across the fact that the
following threw a CompilerException due to a
java.lang.ClassNotFoundException: clojure._PLUS___224:
(eval (eval '(list + 1 2 3)))
After the AOT changes, this no
On Wed, Nov 19, 2008 at 10:01 AM, Rich Hickey [EMAIL PROTECTED] wrote:
On Nov 19, 9:01 am, J. McConnell [EMAIL PROTECTED] wrote:
(eval (eval '(list + 1 2 3)))
should I be testing to
ensure that the above form produces 6? My suspicion is yes, but I
wanted to check anyhow.
I've added
On Wed, Nov 19, 2008 at 4:16 PM, Mark Volkmann
[EMAIL PROTECTED] wrote:
I'm reading an excellent article on functional programming at
http://www.defmacro.org/ramblings/fp.html. Toward the end there is a
section on pattern matching. They give the following example which
uses a fictional,
On Tue, Nov 18, 2008 at 5:58 AM, Simon Brooke [EMAIL PROTECTED] wrote:
However Giraud uses the Common
LISP ASH (arithmetic shift) function, and, if there's a built-in
function in Clojure, I did not find it;
find-doc is your friend in this case:
user= (find-doc shift)
I'm liking projecture
On Mon, Nov 17, 2008 at 2:52 PM, Drew Crampsie [EMAIL PROTECTED] wrote:
Hey All,
I've finally found some time to start getting the project hosting site
together, and i need a name.. so lets put it to a vote.
Here are some suggestions so far, but please feel free to
For anyone using Meikel Brandmeyer's Chimp plugin for Vim, below is a
patch that adds a MacroExpand command, which sends a (macroexpand-1
...) for the inner s-expr. Hope someone finds it useful.
- J.
Index: chimp.vim
===
---
On Tue, Oct 28, 2008 at 4:44 PM, mb [EMAIL PROTECTED] wrote:
I added \me for macroexpand and \m1 for macroexpand-1.
Great, thanks Meikel!
- J.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Clojure group.
To
On Fri, Oct 24, 2008 at 9:44 AM, stephan [EMAIL PROTECTED] wrote:
I downloaded the svn trunk of clojure-contrib, used ant to build the
jar-file, and copied that into a directory included in the classpath.
Unfortunately, jars within directories in the classpath aren't picked
up by the
Here's a tiny patch against the VimClojure syntax file to allow Vim to
recognize BigDecimal literals (numbers suffixed with M):
kant[~/.vim/syntax]$ diff clojure.vim.orig clojure.vim
162c162
syn match clojureNumber \-\?[0-9]\+\
---
syn match clojureNumber \-\?[0-9]\+M\?\
Hope someone
I made a start on this today. I started with the Reader page at
clojure.org and started making tests.
Unless I hear that someone else has started, I guess I'll take a shot
at the Evaluation page next time I get a chance.
- J.
--~--~-~--~~~---~--~~
You received
That's great, J. Thanks. I want to use the wiki to coordinate efforts. I'll
be putting a page up in the next day or two.
Sounds good.
Was the example I posted enough to get you started?
I think so, it made sense to me. If I'm stumped (I'm thinking of
load-file here) I'll be sure to ask
I like with, that's what JavaScript uses IIRC.
- J.
On Tue, Oct 21, 2008 at 11:10 AM, CuppoJava [EMAIL PROTECTED] wrote:
If I understand the macro correctly, it takes an argument, and then
inserts it as the second element into all of the following lists
right?
How about the name with?
On 21 Okt., 17:24, Chouser [EMAIL PROTECTED] wrote:
I don't see much wrong with doto-, though do-with or do- might
be okay. I'd probably vote against do-unto-others-as
I would vote for do-with.
+ 1
--~--~-~--~~~---~--~~
You received this message because you
On Tue, Oct 21, 2008 at 12:34 PM, Timothy Pratley
[EMAIL PROTECTED] wrote:
I'm a bit stuck on how to load test_is...
I've added a tiny section to the wiki because I couldn't find any
instructions on using contrib, and well I made a lot of mistakes along
the way that other people might avoid:
Direct or indirect contributions to clojure.contrib require that the
contributed code be written by the contributor and that the
contributor have a contributor agreement on file with Rich.
Just put mine in the mail :)
--~--~-~--~~~---~--~~
You received this
Western Mass., U.S.
On Fri, Oct 17, 2008 at 9:14 AM, Parth Malwankar
[EMAIL PROTECTED] wrote:
On Oct 17, 2:27 pm, Rastislav Kassak [EMAIL PROTECTED] wrote:
Hello Clojurians,
I think after 1st year of Clojure life it's good to check how far has
Clojure spread all over the world.
So
My try to sell it to someone's boss approach:
The most pressing issue in software development today is how to better
take advantage of multi-core CPU's to increase performance and reduce
energy costs. Clojure provides a fundamentally better approach (in
terms of ease and safety) to concurrency
On Thu, Oct 9, 2008 at 12:06 PM, Luc Prefontaine
[EMAIL PROTECTED] wrote:
I may look stupid but how do you cast Java arguments ?
user= (doc cast)
-
clojure/cast
([c x])
Throws a ClassCastException if x is not a c, else returns x.
nil
So, (cast java.sql.Driver
(seq? ...) tests for whether or not the argument is a sequence, i.e. an
instance of ISeq.
(seq ...) works on things that are seq-able, basically any kind of
collection (instances of IPersistantCollection, instances of
java.util.Collection, Strings, Arrays, etc.), not solely instances of ISeq.
If
On Tue, Sep 16, 2008 at 4:45 PM, Randall R Schulz [EMAIL PROTECTED] wrote:
I'd like to add:
2) Balanced-boundary (non-EOL-terminated) comments. Whether the syntax
is #| ... |# (á là Common Lisp) or /* ... */ (C- and Java-like) or
something else, I don't much care, but I think both
On Tue, Sep 16, 2008 at 7:13 PM, Allen Rohner [EMAIL PROTECTED] wrote:
There is one weakness with the comment macro; the Reader has to be
happy with the body of the comment. Including things like # in the
comment body can upset the reader and cause your file to not compile.
Yeah, that
87 matches
Mail list logo