Re: [ANN] Clojure 1.10.0-alpha7

2018-09-07 Thread Mamun
s-clauses :refer :clause] spec: :clojure.core.specs.alpha/ns-refer :import - failed: #{:load} at: [:ns-clauses :load :clause] spec: :clojure.core.specs.alpha/ns-load :import - failed: #{:gen-class} at: [:ns-clauses :gen-class :clause] spec: :clojure.core.specs.alpha/ns-gen-class Br, Mamun O

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-26 Thread Mamun
Thanks It is working with (defmethod mycomp ~m [~'_] ~m)) _ is also clojure valid symbol identifier. I miss that point. Br, Mamun On Tuesday, December 26, 2017 at 11:59:23 PM UTC+1, Gary Verhaegen wrote: > > The spec is correct; your code is wrong and I don't know

Re: [ANN] Clojure 1.9.0 is now available!

2017-12-26 Thread Mamun
#{(quote &)} :form :clojure.core.specs.alpha/binding-form))), Extra input In: [0 0] val: com.mxsys.psql.component/_ fails spec: :clojure.core.specs.alpha/arg-list at: [:args :bs :arity-n :args] predicate: vector? Br, Mamun On Friday, December 8, 2017 at 8:35:39 PM UTC+1,

Clojure spec keys is considering all key within namespace although it is not defined

2017-06-28 Thread Mamun
])) ;;Success (s/explain-str :app/person {:person/lname "Abdullah" :person/fname "Mamun"} ) ;;Success (s/explain-str :app/person {:person/lname "Abdullah" :person/fname "Mamun" :id "

Re: [ANN] spec-model 0.1.0 generate spec with convention

2016-11-27 Thread Mamun
Please find github link in bellow https://github.com/Mamun/spec-model Br, Mamun On Sunday, November 27, 2016 at 11:37:30 PM UTC+1, Mamun wrote: > > > > It is very common that application needs different format of data, > sometime only entity, sometimes with entity type or list o

[ANN] spec-model 0.1.0 generate spec with convention

2016-11-27 Thread Mamun
ill be understandable to all team member within project. spec-model is solution for it. Like UML tools, define business model as data. spec-model will generate spec for it. Br, Mamun -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to

Is there any way to pass clojure spec conform value to next spec?

2016-11-18 Thread Mamun
/int-in 10 15)) "12") ;; Failed (s/explain (and (s/conformer x-int?) (s/int-in 10 15)) 11 ) ;; Passed In here, explain does not work because of and. Is there any way to pass conform value to next spec? Br, Mamun -- You received this message because you are subscribed to the Goo

Re: clojure.spec - Using :pre conditions (or not)?

2016-09-15 Thread Mamun
When function is throwing exception because of argument. I would prefer to throw IllegalArgumentException not AssertionError. (defn check [type data] (if (sp/valid? type data) true (throw (IllegalArgumentException. (sp/explain type data) Br, Mamun On Friday, September 16

Clojure spec for domain model

2016-09-09 Thread Mamun
:id string?)) (in-spec Credit (s/def ::id number?)) (s/valid? :User/id "Musterman") (s/valid? :Credit/id 12345) (s/valid? :Credit/id "Error") Although I am creating namespace here but it is not visible here. I would like to know Is there any better way to do or any core f

Re: map/filter/remove etc. change underlying structure

2016-09-09 Thread Mamun
To me, Changing type or order is a lack of facility for basic task. In the end comping task is also become more hard. Have you tried to use Specter? Why do you not consider Specter lib? Br, Mamun On Friday, September 9, 2016 at 12:23:37 PM UTC+2, Colin Yates wrote: > > Hi all, >

How does clojure.core quote function work for keyword?

2016-07-26 Thread Mamun
d display ::a Br, Mamun -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscr

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}) >

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

2016-07-22 Thread Mamun
map. Clojure version: [org.clojure/clojure "1.9.0-alpha10"] Br, Mamun -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated -

clojure.spec merge is excellent, but do you consider dissoc spec for keys?

2016-07-19 Thread Mamun
excellent, as I could reuse exiting spec. But how I dissoc id from exiting spec. Only way is now to do is define again in application layer. (s/def ::person-ui-spec (s/keys ::req-un [::channel ::fname ::lname])) Do you consider dissoc in spec for keys? Br, Mamun bnp paribas groups

clojure.spec from returns object instaced of data for every-kv

2016-07-19 Thread Mamun
; (clojure.spec/alt :i clojure.core/int? :s clojure.core/string?) Clojure version: [org.clojure/clojure "1.9.0-alpha10"] Br, Mamun -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@go

clojure.spec Invalid token error from different namespace when specs are registered with number

2016-06-29 Thread Mamun
not. But error should display in same namespace also. Clojure version: [org.clojure/clojure "1.9.0-alpha8"] Br, Mamun -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com

Re: [ANN] Clojure 1.9.0-alpha5

2016-06-08 Thread Mamun
Excellent set of new predicates. What about date predicate? It would be nice if there are also date predicate as an example in bellow date? date-past? date-future? Br, Mamun On Tuesday, June 7, 2016 at 7:38:34 PM UTC+2, Alex Miller wrote: > > Clojure 1.9.0-alpha5 is now ava

tiesql - Clojure sql lib to do sql stuff and more

2015-12-11 Thread Mamun
Hi All, Find link in bellow https://github.com/Mamun/tie/tree/master/tiesql Clojurescript/om example https://github.com/Mamun/tiesql-om Still work in progress but look forward to get your feedback. Br, Mamun -- You received this message because you are subscribed to the Google Groups

Re: Clojure pre assertion functions does not work with keyword?

2014-02-13 Thread Mamun
HI Ambrose, Thanks for your reply. But why this one is working? (defn check-nil [v] {:pre [nil? v]} v) Br, Mamun On Thursday, February 13, 2014 11:51:31 AM UTC+1, Ambrose Bonnaire-Sergeant wrote: > > Hi Mamun, > > This is the correct syntax (you're mi

Clojure pre assertion functions does not work with keyword?

2014-02-13 Thread Mamun
, Mamun -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, sen

Re: [ANN] Yesql 0.2.1 - Clojure & SQL queries rethought.

2013-11-12 Thread Mamun
quot;by_controry_code" :query SELECT count(*) AS count FROM user WHERE country_code = :country_code -- } -- {:doc "Counts the users in a given country." :name "by_id" :query SELECT count(*) AS count FROM user WHERE id = :id -- } Hi Mamun, > Hmm...I hadn't p

Re: [ANN] Yesql 0.2.1 - Clojure & SQL queries rethought.

2013-11-11 Thread Mamun
Hi Kris, It's look fine. Is is possible to to add more query in one sql file? I mean- I'd like to create one sql file and store all query on that file. BR, Mamun On Monday, November 11, 2013 2:38:27 PM UTC+1, Kris Jenkins wrote: > > Thanks David, that's nice of you t

New Leiningen template for clojure and clojurescript project

2013-11-10 Thread Mamun
Hello New Leiningen template for Clojure and Clojurescript project. This might helpful to them who are coming from rails like framework and would love to see first before coding. https://github.com/Mamun/web-app Create new project: lein new web-app hello Run application: lein ring server

Re: Clojure and freelancing

2013-09-12 Thread Mamun
oking something to build CRUD based web application using datomic, enlive, compojure. You can try this https://github.com/Mamun/clojure-web-app. It is not framework but template. BR, Mamun On Sunday, September 8, 2013 10:31:13 PM UTC+2, Mateusz Dobek wrote: > > Is Clojure good choice

Building a CRUD based web application using datomic

2013-09-07 Thread Mamun
Hi Building a CRUD based web application using datomic. It might help some one who are just start using datomic to build CRUD based web application. URL: https://github.com/Mamun/clojure-web-app.git Application feature- Web Authentication CRUD view for domain object Pagination for list

Re: Meta data access

2012-10-23 Thread Mamun
Hi Carlo, Thanks. Now it is fine. Regards, Mamun On Tuesday, October 23, 2012 5:24:41 AM UTC+2, Carlo wrote: > > Hey Mamun, > > Your problem is that your ^{:test true} metadata isn't being applied > to your functions, as you might expect, but rather to the var that i

Re: Meta data access

2012-10-22 Thread Mamun
* (println (str "-->" form)))) (map #(process %1) f*) Regards, Mamun On Monday, October 22, 2012 5:45:21 PM UTC+2, Jim foo.bar wrote: > > well not quite! > you need (-> form >var >meta >

Meta data access

2012-10-22 Thread Mamun
defn process [form] (do *//Would like to access meta data of form* (println (str "-->" form (map #(process %1) f*) Does any one have any idea? Regards, Mamun -- You received this message because you are subscribed to the Google Groups "Clojure" gro

Is there any reason to make different file extension (clj and cljs) for Clojure and ClojureScript?

2012-10-19 Thread Mamun
Hi All, I've just started to learn Clojure and interested to see more ClojureScript. It is really nice stuff- data structure, function and code sharing. But Is there any reason to make different file extension (*.clj and *.cljs) for Clojure and ClojureScript? Regards, Mamun -- You rec

What is the different between = and identical ?

2011-12-01 Thread Mamun
Hi, When I run the following code, I got false for (identical? 128 128). What is the different between = and identical? (println (= 4 4)) true (println (= 128 128)) true (println (identical? 4 4)) true (println (identical? 128 128)) false Regards, Mamun -- You received this message because