I've been bitten by similar mistakes in the past, so I think adding some dev time validations would be a great idea.
> On 5 Dec 2014, at 00:47, Colin Yates <[email protected]> wrote: > >> On Thursday, 4 December 2014 16:45:38 UTC, David Nolen wrote: >>> On Thu, Dec 4, 2014 at 11:15 AM, Colin Yates <[email protected]> wrote: >>> >>> Of course, the answer is obvious when you spot it: (om/set-state! cursor >>> (conj @cursor id)). >>> >>> Numpty points for me :). >> >> By the way I'm more than happy to add more function argument >> validations to Om for dev time to avoid easy to miss mistakes like >> this. >> >> :pre & :post conditions emit `assert`s. These can be elided in >> production via a flag to the ClojureScript compiler. >> >> Thoughts? >> >> David > > +1 for me obviously :). > > -- > Note that posts from new members are moderated - please be patient with your > first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/clojurescript. -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/clojurescript.
