Re: Frustrations so far

2016-07-22 Thread James Reeves
On 22 July 2016 at 16:42, Peter Romfeld wrote: > >> >>> Im frustrated with `empty?` throwing exceptions for Long and Keyword >>> >> >> What should happen? Asking whether an integer or keyword is "empty?" >> doesn't really make sense IMO, and if it doesn't make sense,

Re: Frustrations so far

2016-07-22 Thread Peter Romfeld
On Saturday, July 23, 2016 at 12:01:40 AM UTC+8, raould wrote: > > Unfortunately, dynamically typed most often means what you are > experiencing, as far as I know. Python, JavaScript, Scheme, Lua, etc. all > have something like NPE that can happen at any random time, it feels like, > no? >

Re: Frustrations so far

2016-07-22 Thread Peter Romfeld
NPE is just so painful! most exceptions are not that easy to debug, would be cool if it could say from where the problem was initiated.. (well because most of the time i forget to print the stacktrace with `print-stack-trace `) -- You received this message because you are subscribed to the

RE: Frustrations so far

2016-07-22 Thread Raoul Duke
Unfortunately, dynamically typed most often means what you are experiencing, as far as I know. Python, JavaScript, Scheme, Lua, etc. all have something like NPE that can happen at any random time, it feels like, no? -- You received this message because you are subscribed to the Google Groups

Re: Frustrations so far

2016-07-22 Thread Peter Romfeld
I dont wanna go into the problems we have with this "dynamic typesystem" where you would think it takes care of different types in different functions, but in the end you just get NullPointerExceptions and waste half a day figuring out from where it comes from -- You received this message

Re: Frustrations so far

2016-07-22 Thread Peter Romfeld
> > > >> Im frustrated with `empty?` throwing exceptions for Long and Keyword >> > > What should happen? Asking whether an integer or keyword is "empty?" > doesn't really make sense IMO, and if it doesn't make sense, it should > throw an exception. > well its a fn?... "?" ! i would only

Re: Does clojure.set/rename-keys work with namespace key?

2016-07-22 Thread Mamun
Please skip my last email. It is working. Br, Mamun On Friday, July 22, 2016 at 11:50:08 AM UTC+2, Mamun wrote: > > Hi > > Does clojure.set/rename-keys work with namespaced keys? > > (clojure.set/rename-keys {:fname "Musterman"} {:fname :person/fname}) > => #:person{:fname "Musterman"} > > >

Re: async-webinar vs. lein-cljsbuild vs nooby

2016-07-22 Thread hiskennyness
On Thursday, July 21, 2016 at 7:38:27 PM UTC-4, hiskennyness wrote: > > This cemo of channels in a web client works great. > >https://github.com/cognitect/async-webinar/blob/master/project.clj > > It uses plugin: > > [lein-cljsbuild "1.0.4-SNAPSHOT"] > > While trying to extend the webinar

Automat - order of reducing functions?

2016-07-22 Thread Andrew C
How come the order of the reducing operations in the resulting diagrams below is different? Basically I want to call the first reducing operation after the first 1 and then the second operation when it accepts. This is with [org.clojars.semperos/automat "0.2.0-alpha3"] (ns p.core (:require

Does clojure.set/rename-keys work with namespace key?

2016-07-22 Thread Mamun
Hi Does clojure.set/rename-keys work with namespaced keys? (clojure.set/rename-keys {:fname "Musterman"} {:fname :person/fname}) => #:person{:fname "Musterman"} Is it expected result? Why namespace as #:person? According to documentation, it should return map. Clojure version: