Re: Multimethods dispatch value order

2017-01-11 Thread david swift
Just lastly, I've seen people use the following structure of data (def test-html {:language ::html :data "hello"}) and passing it as an argument to the mutlimethod, though not sure if it would or could apply to my case but when I use it simply returns nil under this condition (transform

Re: Multimethods dispatch value order

2017-01-11 Thread Alex Miller
Yes, multimethod handles varargs. On Wednesday, January 11, 2017 at 4:37:12 PM UTC-6, david swift wrote: > > Ah seems the repl state was the cause, restarted and the ordering worked > correctly though it still confuses me greatly! but I'll get there > eventually (I hope). as for the extra ')'

Re: Multimethods dispatch value order

2017-01-11 Thread david swift
Ah seems the repl state was the cause, restarted and the ordering worked correctly though it still confuses me greatly! but I'll get there eventually (I hope). as for the extra ')' that was manually retyping into forum error :) Using nightcode editor's insta-repl for testing and seems it

Re: Multimethods dispatch value order

2017-01-11 Thread Alex Miller
On Wednesday, January 11, 2017 at 4:23:28 PM UTC-6, david swift wrote: > > Been working on a tiny snippet of code related to multimethods (something > I've never quite wrapped my head around) and when it comes to the > dispatching of the function I'm confused by the order in which I've to pass

Multimethods dispatch value order

2017-01-11 Thread david swift
Been working on a tiny snippet of code related to multimethods (something I've never quite wrapped my head around) and when it comes to the dispatching of the function I'm confused by the order in which I've to pass the arguments in as it seems to go against all common sense. To show what I am

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread Colin Yates
The big barrier for me with emacs was discovering and then remembering all of the various finger-bending chords to do things. Spacemacs uses hydra so all the key mappings are grouped in a very logical way. Have a read of http://spacemacs.org, particularly the horizontal image slide show. But

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread ahawk
Thanks a lot for your reply. I saw the video of your presentation and it seems like your tool is exactly what I am looking for. I've actually installed the package in Emacs and configured the Emacs/CIDER integration, but I haven't gotten to try it thoroughly just yet. In your video, you

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread Gregg Reynolds
On Jan 8, 2017 1:52 AM, "ahawk" wrote: .. I find it difficult to know exactly what to expect from these libraries and many other, unless, of course, I read and understand their source. That is a challenge in its own right for a less advanced programmer such as myself. The

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread ahawk
I guess you're right.. however, I'm generally inclined to try to do it the right way (or, what I perceive as the right way) the first time. Now I know liberator exists, I feel an urge to use it :-) With regards to logging, I actually considered that option, but it just didn't seem very

Re: New to Clojure - productivity and debugging with Emacs

2017-01-11 Thread ahawk
Thanks a lot for the very elaborate reply. I should probably buy SICP. With regards to discovery, I will have a closer look at clojure.spec. It looks interesting. I've previously (perhaps wrongfully) discarded Prismatic Schema, thinking something like "don't you really just want static

Re: Private multimethods possible?

2017-01-11 Thread Didier
Maybe you're right in not recommending this, but I find it at first glance to be quite nice. Now, I wouldn't keep switching namespace back and forth, but having two sections in the file, one the public API at the top, and everything else at the bottom in a private namespace, that's quite nice

Re: [ANN] Ultra v0.5.1 - a Leiningen plugin for a superior development environment

2017-01-11 Thread Mars0i
David, thanks very much for the quick reply. (!) OK, got it now. update-options! will be useful because sometimes I have a lot of state set up within the repl and then realize that I want to change the size of the terminal window to see more data at once (or to see more windows at once). --

[ANN] re-learn: data-driven tutorials for educating users of your reagent/re-frame app

2017-01-11 Thread Oliver Hine
Hi everyone, I have released re-learn , a library for writing and displaying tutorials to your users on your reagent/re-frame application with the following aims: - Display "lessons" on the UI right next to the elements they describe - Define the