Re: Looking for library to annotate structures with grammar descriptions

2015-06-26 Thread Aaron Cohen
I took a swing at this using prismatic schema: (ns schema-test.core (:require [schema.core :as s] [schema.utils :as utils] [schema.coerce :as coerce]) (:import schema.core.NamedSchema)) (def Alternate (s/named [s/Keyword] "alternate")) (def Path (s/named [(s/either s/

ANN: remote - DSL for clj-http/cljs-http

2015-06-26 Thread Joel Holdbrooks
Are you tired of writing the same clj-http/cljs-https boilerplate? Looking for an easy way to express an endpoint or a service API? Then "remote" is the library for you! Github: https://github.com/outpace/remote Leiningen: [com.outpace/remote "0.3.1"] This library has been closed source up unti

Re: Calling an overloaded Scala function

2015-06-26 Thread Stephen Wakely
I want to fully understand what is going on before doing anything. Interestingly if I convert the Java code below to Scala it fails to compile with the same error : def Onk(str: util.ArrayList[String]): String = { println("String") "erk" } def Onk(it: util.ArrayList[Integer]): Integer = {

Re: Calling an overloaded Scala function

2015-06-26 Thread Ambrose Bonnaire-Sergeant
Have you considered writing a wrapper method in Scala and calling that? Thanks, Ambrose On Fri, Jun 26, 2015 at 7:24 PM, Stephen Wakely wrote: > Sorry about the double threads - I messed up and thought the original post > didn't go through. > > Looking further into this it seems in Java generic

Re: Calling an overloaded Scala function

2015-06-26 Thread Stephen Wakely
Sorry about the double threads - I messed up and thought the original post didn't go through. Looking further into this it seems in Java generics are largely a compile time thing. The generic type information is wiped out from the type on compile. So how does Java know which overload to call when

Re: Looking for library to annotate structures with grammar descriptions

2015-06-26 Thread Frank Castellucci
Have you looked at: clojure.walk ? clojure.zip ? namespaces? You could use either to traverse and set meta data. There are also 'zipper' predicate libraries that do similar things as 'specter' On Thursday, June 25, 2015 at 12:35:54 PM UTC-4, Brian Marick wrote: > > Suppose we have a structur