Re: clojure.spec

2016-05-25 Thread Elliot
On Wednesday, May 25, 2016 at 5:30:03 AM UTC-7, Rich Hickey wrote: > > The philosophy is - generative testing has made sure your function > complies with the specs. So, testing the :ret and :fn properties over and > over is redundant and serves no point. > > OTOH, you may encounter user- or exte

Re: clojure.spec

2016-05-24 Thread Elliot
Super super excited for this feature, thanks so much for creating this. In the runtime-validation case, the guide mentions: 1. Calling `valid?` in a precondition 2. Calling `conform` in the fn implementation However neither of these appear to use the `fdef`/`instrument` combo, which seems the c

Re: clojure.spec

2016-05-24 Thread Elliot
Super super excited for this feature, thanks so much for creating this. In the runtime-validation case, the guide mentions: 1. Calling `valid?` in a precondition 2. Calling `conform` in the fn implementation However neither of these appear to use the `fdef`/`instrument` combo, which seems the c

Re: Why do map/get and similar return nil if not found?

2016-01-12 Thread Elliot Bulmer
I agree with the stance that nil is a value and it is the responsibility of the caller to throw if nil indicates an error in the calling context. On Wednesday, January 13, 2016 at 4:25:56 AM UTC+8, mattias w wrote: > > Clojure and Erlang are very similar, except for the syntax, macros and > that

Re: ANN: Om 0.8.2

2015-01-25 Thread Elliot Block
On Saturday, January 24, 2015 at 8:39:56 AM UTC-8, David Nolen wrote: > The release depends on ClojureScript 0.0-2719 as it leverages the new foreign > dependency functionality to simplify development and production builds. This is super super awesome. One observation for people trying this, if

Safest way to isolate/terminate an uncooperative thread?

2014-11-22 Thread Elliot
rom, so it just hangs. We're hoping to wrap this in some kind of process isolation that if _any_ type of error prevents returning a result within a timeout, the whole thing gets destroyed and cleaned up. Any thoughts greatly appreciated. Thank you! - Elliot -- You received this message

Using records as handles vs. complete representations

2014-05-23 Thread Elliot
e a standard and/or satisfying way to solve this? Thanks. - Elliot [wikipedia] http://en.wikipedia.org/wiki/Handle_%28computing%29 -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups

Are agents suitable for c10k concurrency?

2012-11-17 Thread Elliot
'd prefer to stick with Clojure if possible but need to be able to handle the connection/IO-load. Anyone know how this works and/or has tried this in a production system? Any thoughts appreciated. Thanks! - Elliot -- You received this message because you are subscribed to the Google Groups

Re: edn

2012-09-07 Thread Elliot
On Thursday, September 6, 2012 8:31:59 PM UTC-7, Weber, Martin S wrote: > > The question that's left for me is: why vectors and lists? I mean, from a > data format perspective, and a non-clojure implementor, I'm not sure the > distinction makes sense. After all for the _data format_, in its seria