Re: An Error spec?

2018-10-26 Thread Benoît Fleury
I found the `cognitect.anomalies` namespace useful to provide some uniformity in error codes and their meaning. https://github.com/cognitect-labs/anomalies On Fri, Oct 26, 2018 at 6:03 PM Oleksii Kachaiev wrote: > Sean, that's what I'm actually talking about. > > 1. There's no standard way to

Re: Atom/Clojure N00b - dependency issue

2018-07-28 Thread Benoît Fleury
Could it be the "funny" double quotes around your version number in the project file? On Sat, Jul 28, 2018 at 8:21 AM Nando Breiter wrote: > I've installed proto-repl as a package within Atom, and it works. I've > never listed it as a dependency within a project. > > > > Aria Media Sagl > +41 (0

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-19 Thread Benoît Fleury
te: > > > On Thu, Jul 19, 2018 at 1:04 PM Benoît Fleury wrote: > >> Replying to myself ... :) >> >> 1. Am I wrong in thinking that most Clojure programmers use append/prepend >> as mental models for the different implementations of conj? >> &g

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-19 Thread Benoît Fleury
is justified or not :) On Thu, Jul 19, 2018 at 11:04 AM Benoît Fleury wrote: > I agree with Alex. It is important to understand the rationale behind the > behavior of conj. conj is for adding an element to a collection. It doesn't > say anything about ordering. It has been chosen

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-19 Thread Benoît Fleury
I agree with Alex. It is important to understand the rationale behind the behavior of conj. conj is for adding an element to a collection. It doesn't say anything about ordering. It has been chosen as an operation, as opposed to append/prepend, because it can be implemented with the same time compl

Re: Why does the `def-` not exist?

2018-02-28 Thread Benoît Fleury
Hi Leon, as Alex said above, if you really need something I would recommend adding it in a library. I'm sure you will encounter more scenarios in the future where you need things that are not in the core language. You can put them in the same library. I don't think anyone will (or should) blame yo