Re: Clojure docstring style

2016-05-15 Thread James Reeves
On 16 May 2016 at 00:57, Christopher Small wrote: > > Seems like this shouldn't be a problem as long as you only try to render a > link if there's actually such a var. > You could have some text you wish to render as code, which doesn't relate to a var but by coincidence

Re: :default catch blocks with core.async and clojurescript

2016-05-15 Thread Kevin Downey
On 05/14/2016 09:31 PM, cameron wrote: > I'm having an issue where :default catch blocks are not working in > clojurescript when in a go block. > > The following code prints "a str" as expected: > > (prn (try >(throw "a str") >(catch :default e e ))) > > The same code in

Re: Clojure docstring style

2016-05-15 Thread Christopher Small
Seems like this shouldn't be a problem as long as you only try to render a link if there's actually such a var. This might be a little messier, but would make things (overall) nicer (I think) because you wouldn't have to think about a separate bit of syntax. The rendering would just happen

Re: Clojure docstring style

2016-05-15 Thread James Reeves
If the docstrings are written in markdown, this would conflict as something in backticks isn't necessarily a var name. In Codox, I used the wiki-link style: [[clojure.core/map]]. - James On 15 May 2016 at 18:40, cskksc wrote: > Hello, > We are working on a new feature in

Clojure docstring style

2016-05-15 Thread cskksc
Hello, We are working on a new feature in CIDER which would parse a docstring and create hyperlinks that follow the functions/vars/interop-forms mentioned there. It is very similar to the "See Also" links shown by ClojureDocs . Right now, we are using backticks to

Re: Why do transducers on channels need buffer size of at least 1?

2016-05-15 Thread Alex Miller
(chan 0) is not actually valid (should just be (chan)) - I have a ticket to error on this more visibly. http://dev.clojure.org/jira/browse/ASYNC-143 Trasducers may produce more than one value (per things like the mapcat transducer) and thus a buffer is required so that there is somewhere to put

Why do transducers on channels need buffer size of at least 1?

2016-05-15 Thread JvJ
I don't have much experience with core.async, and I recently tried using channels with transducers. Strangely, I found that you need a buffer with a size of at least one in order for the transducer to be applied. I have a few toy functions: (defn push-nums "Push a few numbers on a