Re: Sum types in Clojure? Better to represent as tagged records or as variant vectors?

2017-08-29 Thread Tim Gilbert
I've used tagged unions to represent lookup identifiers for variant types and found them to be pleasant to work with. I think part of the reason they don't seem useful in the context of this discussion is that many of the examples given have not actually been variants. For example, in

Re: Deref Nil

2016-09-15 Thread Tim Gilbert
In this specific case, I might personally use something like: (render-image (some-> product-image-list first deref)) ...or maybe write a little function that does the above. Alternately, in (render-image) you might start out with (if (nil? cursor) (default-image) (code-to-render @cursor)).

Re: [ANN] lein-collisions: a plugin to find classpath collisions

2015-07-13 Thread Tim Gilbert
I'm not sure if it's something else in my project's somewhat baroque dependency tree that causes this, but after I add lein-collisions to my project's plugins, I'm unable to get it to pass lein's :pedantic? tests due to overlapping versions in its own dependencies: http://pastebin.com/js93Mrzw

Re: [ANN] Chestnut 0.7.0

2015-03-10 Thread Tim Gilbert
Oh, that's odd. I don't have any entries in my own user plugins for lein new templates. (I'm assuming you meant ~/.lein/profiles.clj, right?) Is there some reason you have them in there? lein new chestnut should work just fine without them, but maybe I'm not understanding what you're trying to

Re: [ANN] Chestnut 0.7.0

2015-03-08 Thread Tim Gilbert
I ran into this same behavior, and then I realized it only happened if I run the lein new command if I'm *already in* a previously-created project created with lein new chestnut. I'm guessing that something in the generated project.clj interferes some of the lein new behavior somehow. At any

Re: [ANN] Grimoire: up to date Clojure web docs

2014-07-12 Thread Tim Gilbert
Well, clojure-grimoire.com is available, FWIW. Tim On Saturday, July 12, 2014 2:46:18 AM UTC-4, Reid McKenzie wrote: While I appreciate the interest, I think that attempting to officiate Grimoire is a bad move. We already have clojure.org. clojure.org is the only official site. Grimoire

Re: Poll for a new name for clojure eclipse plugin 'clojure-dev'

2009-06-24 Thread Tim Gilbert
+1 from me. I don't think extremely literal names are bad things where plugins are concerned. Tim Mike Hinchey wrote: I vote for EclipseClojure or eclipse-clojure. It's not as fun as some of the others, but do you really need a distinct brand on this project? I think easy to understand