Re: Keys in EDN maps: keywords or symbols

2019-10-25 Thread Anton Vodonosov
Thank you for responses. The last two arguments do not resolve the doubt, however: 1. symbols also implement IFn: (require 'clojure.edn) ('a (clojure.edn/read-string "{a 1 b 2}")) => 1 2. EDN does not specify any evaluation model, so how can a symbol designate something "in isolat

Re: Keys in EDN maps: keywords or symbols

2019-10-24 Thread Anton Vodonosov
Regarding the idea that a keyword is an identifier that designates itself, while a symbol is a keyword that designates something else. Keys in config file map do not designate themselves, they designate the corresponding map values. {username "vasya" email "a@b.c"} Here the EMAIL symbo

Keys in EDN maps: keywords or symbols

2019-10-23 Thread Anton Vodonosov
I'm working on a config file format in EDN, and in doubt: should I use keywords or symbols as map keys. After all, the colon is an extra keyboard press - an extra effort for users. As EDN parser doesn't evaluate expressions, there is no need to quote symbols when using them as EDN map keys (unl

Re: Embedding Clojure/swank into existing Java system

2008-12-03 Thread Anton Vodonosov
Hi Craig, clojure.main/with-bindings was exactly what I needed. With it my JSP became trivial few liner: http://paste.lisp.org/display/71541 Thank you. - Anton --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cloju

Embedding Clojure/swank into existing Java system

2008-11-28 Thread Anton Vodonosov
Hello. I want to embed Clojure into a Java system we are creating at work to have interactive control on it (via SLIME) during development. The system is running in Tomcat. I did not find a conventional to do this. Therefore I copy/pasted peace of clojure.lang.Repl class and created a JSP page,