Re: Is anyone relying on the js* special form?

2012-09-24 Thread Herwig Hochleitner
2012/9/25 Brandon Bloom > clojurescript gives no access to javascript's delete operator. >> > > There is a js-delete macro in core. It uses the same form as your proposed > adel form. > Oh, beg your pardon, I have overlooked that. I have to admit, a del! form for deleting advanced-optimized prop

Re: Map-destructuring a non-associative structure, non documented behavior?

2012-09-24 Thread Ben Smith-Mannschott
On Tue, Sep 25, 2012 at 5:10 AM, Nahuel Greco wrote: > I can't find the documentation for this behaviour: > > (let [{x :b :as y} '(:a 1 :b 2)] [x y]) > > ;=> [2 {:a 1, :b 2}] > > It seems as if the list in the init-expr is converted first to an > associative structure and then destructured. > But

Map-destructuring a non-associative structure, non documented behavior?

2012-09-24 Thread Nahuel Greco
I can't find the documentation for this behaviour: (let [{x :b :as y} '(:a 1 :b 2)] [x y]) ;=> [2 {:a 1, :b 2}] It seems as if the list in the init-expr is converted first to an associative structure and then destructured. But that behaviour doesn't seems to be documented, the map destructuring

Re: ANN Ritz 0.5.0

2012-09-24 Thread Hugo Duncan
Tim, Timothy Washington writes: > I was following the instructions on the ritz-nrepl > page. And > I get the error below, when executing the "*M-x nrepl-ritz-jack-in*" > command. ... > Caused by: java.lang.RuntimeException: Unable to resolve

Re: ANN Ritz 0.5.0

2012-09-24 Thread Hugo Duncan
Adrian, adrians writes: > I'm trying to get ritz-nrepl going with the latest lein2 and nrepl.el from > Melpa. I think I've followed the instructions on the project page, yet I > get this, when I nrepl-ritz-jack-in: > > error in process sentinel: Could not start nREPL server: Exception in thre

Re: Is anyone relying on the js* special form?

2012-09-24 Thread Brandon Bloom
> > clojurescript gives no access to javascript's delete operator. > There is a js-delete macro in core. It uses the same form as your proposed adel form. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@

Re: clojurescript: var names with "-" and "_" are rendered to the same internal name (?)

2012-09-24 Thread Herwig Hochleitner
2012/9/24 Frank Siebenlist > Guess the AOT compiler uses it but the REPL-one doesn't (???). > The reason for this is two-fold: 1) Vars in Clojure are not suffering from that issue, since they are reified. That means, that their field in the java class is a generated name and they are interned b

Re: Is anyone relying on the js* special form?

2012-09-24 Thread Herwig Hochleitner
2012/9/13 David Nolen > If people are encountering reasons > to use it - something is missing from ClojureScript that needs to be > provided. I think I found such a reason: clojurescript gives no access to javascript's delete operator. Deleting is not the same as setting to undefined. I propose

Re: clojurescript: var names with "-" and "_" are rendered to the same internal name (?)

2012-09-24 Thread Frank Siebenlist
Thanks for digging. The mapping of "-" to "_" comes indeed from clojure.lang.Compile/munge which is called by cljsh.compiler/munge: user=> (#'cljs.compiler/munge "-") "_" user => (clojure.lang.Compiler/munge "-") "_" user => (clojure.lang.Compiler/munge "_") "_" user => ---

Re: clojurescript: var names with "-" and "_" are rendered to the same internal name (?)

2012-09-24 Thread Frank Siebenlist
That CLJS-336 feels like a different issue that doesn't map to what I'm seeing... On Sep 24, 2012, at 1:45 AM, Raju Bitter wrote: > Identifiers in JavaScript cannot contain a hyphen/minus character: > https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Values,_variables,_and_literals >> A

Re: clojurescript: var names with "-" and "_" are rendered to the same internal name (?)

2012-09-24 Thread Herwig Hochleitner
> Not sure if this has been reported before - I searched JIRA and the > mailing list, but couldn't find anything, but it's difficult to search for > "_"… > > Bug? > Mapping limitation? > This behavior comes from cljs.compiler/munge, I'd say it's a mapping limitation that should be considered a bug

Re: clojurescript: var names with "-" and "_" are rendered to the same internal name (?)

2012-09-24 Thread Raju Bitter
Identifiers in JavaScript cannot contain a hyphen/minus character: https://developer.mozilla.org/en-US/docs/JavaScript/Guide/Values,_variables,_and_literals > A JavaScript identifier must start with a letter, underscore (_), or dollar > sign ($); > subsequent characters can also be digits (0-9). B

Re: ANN Ritz 0.5.0

2012-09-24 Thread Stefan Hübner
adrians writes: > Hi Hugo, > > I'm trying to get ritz-nrepl going with the latest lein2 and nrepl.el from > Melpa. I think > I've followed the instructions on the project page, yet I get this, when I > nrepl-ritz-jack-in: > > error in process sentinel: Could not start nREPL server: Exception in

Re: Clojure Course on Coursera

2012-09-24 Thread Joshua Ballanco
Zed Shaw's been working on just such a thing (generic online learning environment) over at https://inculcate.me/ . It's still early, so I don't know if he's even accepting third-party courses just yet, but it might be interesting to reach out to him... -- Joshua Ballanco ELC Technologies™ 1771

Re: Evolving the Clojure contribution process and goals

2012-09-24 Thread Joshua Ballanco
On Wednesday, September 19, 2012 at 6:59 PM, Michael Klishin wrote: > Paul deGrandis: > > 4.) What are the limitations behind changing the CA process? Can the CA > > process be made digital (a scan of a signed CA, SSH shared key, OAuth > > credential confirmation) or potentially reformed to allo