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: Multimethods dispatch value order

2017-01-11 Thread david swift
testing and seems it doesn't refresh the changes. Also does mutlimethod handle varargs? purely for testing purposes, doubt it'll be used but just incase On Wednesday, 11 January 2017 22:29:00 UTC, Alex Miller wrote: > > > > On Wednesday, January 11, 2017 at 4:23:28 PM UTC-6,

Re: Multimethods dispatch value order

2017-01-11 Thread david swift
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 >&g

Storing Clojure spec's in edn files?

2017-01-13 Thread david swift
I was curious and wondering if it is possible (and if so how) to store Clojure spec's in edn files? I've an idea of (dynamically) loading spec's from say a resource/spec folder of app using some form of a lookup function and then use that analysis the code; I say this as I was looking to imple

Re: Storing Clojure spec's in edn files?

2017-01-13 Thread david swift
ixed.) > > > > On Friday, January 13, 2017 at 3:19:03 PM UTC-6, david swift wrote: >> >> I was curious and wondering if it is possible (and if so how) to store >> Clojure spec's in edn files? >> >> I've an idea of (dynamically) loading spec's from

Using specs as/from resources

2017-04-12 Thread david swift
Hey guys, I am currently trying to use my specs for a library I am working on as a resource specifically from a resource folder, I've attached a screen shot of my project file/folder layout to explain what I mean, and I am having some varying issues occurring. First issue is when attempting to

Looking for help creating this function/macro

2017-05-18 Thread david swift
Hey Guys, I am looking for help creating a particular function/macro, right now I've no experience using macro's and I'm under the impression it might be the right solution to my problem, that produces a spec output but a very specific spec output. My goal here is to reduce the constant repeat

Re: Looking for help creating this function/macro

2017-05-18 Thread david swift
I forgot to mention I am using the following library https://github.com/metosin/spec-tools; where you see (st-ds/spec) calls is the use of that library. On Thursday, 18 May 2017 17:21:45 UTC+1, david swift wrote: > > Hey Guys, > > I am looking for help creating a particular fu

Re: Looking for help creating this function/macro

2017-05-18 Thread david swift
f ~html-tag (html-spec ~html-tag))) > > Notice that the macro starts with "def". This is a good indicator for > anyone using it that this is a macro that defines something. > > On 18 May 2017 at 17:23, david swift > > wrote: > >> I forgot to mention I am us