Hi,
Clojure doesn't read files. It reads, compiles and executes a stream of
toplevel expressions. Hence the file is compilable, but not readable.
If you do not want to execute the forms contained in a file, you have to avoid
any dynamic feature. In particular aliased keywords with :: since thos
I finally found the time to watch the video recording of Rich's
keynote at Clojure/conj. Lots of interesting stuff, as usual...
When he started talking about transients and pods, I saw the term
"state monad" flashing in the background. I suppose most people don't
see, which is why I am writing thi
Hi
If I have the following short Clojure program:
;; unread.clj
(require '[clojure.string :as s])
(prn ::s/kwd)
The second form can't be read by the clojure reader:
user=> (def reader (java.io.PushbackReader. (clojure.java.io/reader
"unread.clj")))
#'user/reader
user=>
On Saturday, March 10, 2012 7:57:59 AM UTC-6, lpetit wrote:
>
>
>
> 2012/3/10 Brian Goslinga
>
>> On Mar 8, 3:12 pm, cej38 wrote:
>> > This is a NOOB question.
>> >
>> > Would it be possible to write a library that could do IO without
>> > resorting to the underlying VM?
>> I would be suspiciou
In the Hiccup library, some functions take an optional map of
attributes as their first argument.
So I could write:
(text-field :name)
(text-field :name "Bob")
(text-field {:class "foo"} :name)
(text-field {:class "foo"} :name "Bob")
The question is how best to represent this in the argl
On 8 March 2012 16:23, Leon Talbot wrote:
> What I met by readable, is the capacity of reading someone's code.
I develop Ruby professionally, and write Clojure in my spare time.
Off hand, I can think of several Ruby libraries I'd consider to have
unreadable code, but no Clojure equivalents immed
Recently released Leiningen 2.0[-preview2] is now provided/supported on
travis-ci.org.
See our Clojure documentation guide to learn how to switch to it:
http://about.travis-ci.org/docs/user/languages/clojure/
If you are new to travis-ci.org, take a look at the Getting Started guide:
http://about
About item 1:
The first Lisp I used was runing on a DEC-10 with 256k 36 bits words of physical
memory (magnetic-core memory).
It had a structural editor. We would change nodes, add/remove child nodes, ...
Of course there were no WYSIWYG GUIs. The representation was all text
base showing a tree sh
2012/3/10 Brian Goslinga
> On Mar 8, 3:12 pm, cej38 wrote:
> > This is a NOOB question.
> >
> > Would it be possible to write a library that could do IO without
> > resorting to the underlying VM?
> I would be suspicious of a cross-implementation wrapper. You'll
> probably end up with something
This project is very fresh (only 2 weeks old) - I have just fixed
couple of last minute bugs.
I had to publish the JAR in Clojars since development process on
Heroku requires me to build demo application with lein on their
virtual host before it can be deployed.
Zoka
On Mar 10, 6:41 pm, Shanta
On Mar 10, 12:19 am, Craig Brozefsky wrote:
> Sure, you feel your defmacro, oats you write some ghetto macros with
> syntactically significant keywords, maybe stay up late a few nights
> expanding it into a some monstrosity and suddenly you have loop (I don't
> think CL's format is in the same r
On 03/08/2012 02:39 AM, Leon Talbot wrote:
If so, how ?
Syntax is a list of arbitrary rules made by a language designers. It's
always possible to come up with a different (perhaps more compact,
cleaner, more readable) syntax but:
- that means creating a new incompatible language,
- that woul
On Mar 9, 11:13 am, daly wrote:
> There is a bit of brain-training necessary to read code with
> parens but not a lot. In fact, my editor can read paren code.
Hard to see what your point is there. I didn't write let? because I
can't read code with parens. I've been writing Lisp since 1983,
star
Evan Gamble writes:
> I find let? useful and readable, as do others. There's a bit of brain-
> training necessary to read it, but not a lot. Probably no more than
> the keyword clauses of the "for" comprehension. The argument that
> decades of Lisp programmers haven't invented this particular
> "
14 matches
Mail list logo