Upon some introspection as to why I failed to remember this subtle
point, I realized that:
1. I expect get on sets to do the behavior where it returns the item.
2. I expect contains? on sets to do the behavior where it returns true or false.
3. I (incorrectly) expected function application of a set
Thanks for reminding me.
--
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 with your
first post.
To unsubscribe from this g
Ah yes. I knew that. I've seen it on this list dozens of times. And
yet, when it bit me, I was still surprised.
--
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
Thanks a lot Daniel, much appreciated!
--
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 with your
first post.
To unsubscri
ClojureScript One is built on top of Ring, which provides nice middleware
for handling cookies [1].
You may want to search for "wrap-" on the web page of One's marginalia
documentation to see where you could add this middleware [2].
[1] https://github.com/mmcgrana/ring/wiki/Cookies
[2] http://c
Mark Engelberg writes:
> I believe it is a bug that:
> (#{true false} false) yields false
> whereas
> (contains? #{true false} false) yields true
>
> Can someone confirm or deny this?
It's intentional that calling a set as a function returns the argument
if it's a member. Part of the reason cont
Sets when used as functions are not predicates the do not return true or
false based on membership.
They return the looked up value, in this case false. You can say "well I
passed in the value, why would I want it back" but sets don't need to
return an identical object, just an equal object (could
I believe it is a bug that:
(#{true false} false) yields false
whereas
(contains? #{true false} false) yields true
Can someone confirm or deny this?
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegr
Actually thinking about this what you are saying seems to be correct, I
just realised that the atom is stored on the client, not the server. Is
there any cookie functionality I can access from clojurescript?
Regards,
Folcon
--
You received this message because you are subscribed to the Google
Hi Daniel,
I am aware of that, reading the wiki it appears that Clojurescript One
keeps track of state in an atom and I was under the impression that it
should be possible to recover the current state from this atom? Maybe I'm
mistaken in this however.
Regards,
Folcon
--
You received this me
The wiki page I really meant
is https://github.com/brentonashworth/one/wiki/Workflow
Also, obviously, restoring state out of persistent state stores can only be
made if you've explicitly saved stuff there before the user refreshed the
page. The same is true of the HTTP request-response workflow
Folcon wrote:
>
> I'm trying out Clojurescript one, but whenever I refresh the page the init
> event appears to fire so I lose the current state I'm in.
>
> How can I set it so that the init event only resets my state if I don't
> have any? (I'm intending to have an explicit reset event.)
>
That
I'm trying out Clojurescript one, but whenever I refresh the page the init
event appears to fire so I lose the current state I'm in.
How can I set it so that the init event only resets my state if I don't
have any? (I'm intending to have an explicit reset event.)
Kind Regards,
Folcon
--
You r
Hi all,
I just released another OAuth library for Clojure on top of
clj-http, supporting version 1 and 2 of the OAuth protocol.
Roman.
https://github.com/r0man/oauth-clj
http://clojars.org/oauth-clj
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
T
Thanks Phil, that was it exactly. Duly noted!
On Jan 20, 2:28 pm, Phil Hagelberg wrote:
> techwhizbang writes:
> > I am using lein run -m to execute a simple database preparation task.
> > I issue 2 very simple commands that execute very fast on their on own
> > when executed in the shell. They
On Jan 19, 10:25 pm, jayvandal wrote:
> Why does the clr point to d: work?
> user=> (use :reload 'ui)
> FileNotFoundException Could not locate db.mysql.clj.dll or db/
> mysql.clj on load
> path. clojure.lang.RT.load (d:\work\clojure-clr\Clojure\Clojure\Lib
> \RT.cs:3065)
It is not looking in d:\
On 19 Jan, 12:03, joachim wrote:
> On Jan 18, 8:23 pm, Andy Fingerhut wrote:
>
> > I don't have some code lying around to do that, but I might make one. The
> > name strings would require several megabytes of storage, but as long as you
> > don't mind that...
>
> I wouldn't mind, but the code yo
On Sat, Jan 21, 2012 at 2:47 AM, drewn wrote:
> Thank you, that works great! It's a nice use of destructuring too,
> which I should of thought of.
...
> Thanks for a great lesson on macros!
You're welcome. :)
--
You received this message because you are subscribed to the Google
Groups "Cloju
18 matches
Mail list logo