Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Alex Miller
If someone could file an issue on the clojure-site repo, I would be happy to improve the example. -- 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 mode

Re: Vars as global thread-locals?

2017-03-20 Thread Ernesto Garcia
Thanks for your response Didier. On Friday, March 10, 2017 at 7:05:19 PM UTC+1, Didier wrote: > > But just to clarify, Java's ThreadLocal is an implementation of dynamic > scoping. > This is how I see it: A ThreadLocal is an object instance. It ensures a different object for each different thr

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Gregg Reynolds
On Mar 20, 2017 3:59 PM, "Colin Fleming" wrote: Object doesn't have a getName() method. sorry, of course you're right. it's java.lang.Class that has getName. as you point out it's the doc that is suboptimal. This doc is confusing - as Phill comments above, this is calling the getName() method

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Colin Fleming
Object doesn't have a getName() method. This doc is confusing - as Phill comments above, this is calling the getName() method on an instance of Class. In Clojure, a bare classname (String, ArrayList or whatever) resolves to the class itself if it has been imported (i.e. what would be String.class

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Gregg Reynolds
On Mar 20, 2017 3:11 PM, "John Gabriele" wrote: On Monday, March 20, 2017 at 4:14:46 AM UTC-4, Matching Socks wrote: > > Methods having the same name might be distinguished by their argument > lists. > Thanks, but it sounds like you're describing method overloading, as in (.someMethod someO

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Gregg Reynolds
please ignore! sleep deprived. On Mar 20, 2017 3:32 PM, "Gregg Reynolds" wrote: On Mar 20, 2017 3:11 PM, "John Gabriele" wrote: On Monday, March 20, 2017 at 4:14:46 AM UTC-4, Matching Socks wrote: > > Methods having the same name might be distinguished by their argument > lists. > Thanks, b

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Gregg Reynolds
On Mar 20, 2017 3:11 PM, "John Gabriele" wrote: On Monday, March 20, 2017 at 4:14:46 AM UTC-4, Matching Socks wrote: > > Methods having the same name might be distinguished by their argument > lists. > Thanks, but it sounds like you're describing method overloading, as in (.someMethod someO

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread John Gabriele
On Monday, March 20, 2017 at 4:14:46 AM UTC-4, Matching Socks wrote: > > Methods having the same name might be distinguished by their argument > lists. > Thanks, but it sounds like you're describing method overloading, as in (.someMethod someObj arg1) ; vs (.someMethod someObj arg1 arg2)

Re: ANN: I wrote a beginner datomic tutorial I wanted to share with y'all, constructive feedback welcome

2017-03-20 Thread Gregg Reynolds
if you post a note to clojurians, we can give you editorial feedback useful to you but very boring to everybody else. example: instead of "...we have to specify ahead of time which keywords entities in datomic are allowed to use" i suggest sth like "... which keywords may be used by datomic entiti

Re: ANN: I wrote a beginner datomic tutorial I wanted to share with y'all, constructive feedback welcome

2017-03-20 Thread Gregg Reynolds
just starting on it but since you asked: the toc links do not seem to work, at least not on my android phone. also fwiw i would suggest a direct link, not a link to reddit, which some of us do not use. better imho to post a note to clojurians on slack. On Mar 19, 2017 4:34 PM, "Fenton Travers" w

Re: ANN: I wrote a beginner datomic tutorial I wanted to share with y'all, constructive feedback welcome

2017-03-20 Thread Luke Burton
> On Mar 19, 2017, at 2:34 PM, Fenton Travers > wrote: > > https://www.reddit.com/r/Clojure/comments/5zu1oc/my_datomic_tutorial_feedback_sought/ > > My feedback: this is re

Re: ANN: I wrote a beginner datomic tutorial I wanted to share with y'all, constructive feedback welcome

2017-03-20 Thread Alan Thompson
Looks like a good start. If you are interested, you may find some of the examples and helper functions from the Tupelo Datomic library useful: https://github.com/cloojure/tupelo-datomic Alan On Sun, Mar 19, 2017 at 2:34 PM, Fenton Travers wrote: > https://www.reddit.com/r/Clojure/comments/5z

Re: [beginner] help understand this function

2017-03-20 Thread Luis P. Mendes
Thanks Walter! sábado, 18 de Março de 2017 às 21:19:10 UTC, Walter van der Laan escreveu: > > The value of 'maps' can be, for example; [{:lat 1 :lng 4} {:lat 2 :lng 3}]. > > If you enter (min [{:lat 1 :lng 4} {:lat 2 :lng 3}]) in the repl the > result will be {:lat 1 :lng 3} > > If you replace 'm

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Matching Socks
In (.getName String) String is an instance of the class Class. -- 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

Re: java interop, `(.instanceMember Classname)`

2017-03-20 Thread Matching Socks
Methods having the same name might be distinguished by their argument lists. -- 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 patie

Re: [ANN] irresponsible/codependence 0.1.0 (dependency resolution for apps - a twist on integrant)

2017-03-20 Thread James Laver
Hi James, It's nice to see that integrant now has support for multiple instantiations, good job! I think it doesn't mean much for codependence though as I'm likely to extend it with more features soon that probably don't belong in integrant. Cheers, James On Monday, March 20, 2017 at 8:44:16

Re: [ANN] irresponsible/codependence 0.1.0 (dependency resolution for apps - a twist on integrant)

2017-03-20 Thread James Reeves
Nice work. The use of keys is interesting. I'm not sure of this affects Codependence, but I released a new version of Integrant a few days ago that supports multiple components of the same type via composite keys. - James On 19 March 2017 at 09:17, James Laver wrote: > Hi all, > > The Irrespon

java interop, `(.instanceMember Classname)`

2017-03-20 Thread John Gabriele
In the [Java Interop Docs](https://clojure.org/reference/java_interop), what does the example (.instanceMember Classname args*) mean? (Looks like the example given at the top for that one is `(.getName String)`, but I don't see any `getName` method in the javadoc for java.lang.String.) It