Hi,
Am Dienstag, 1. Mai 2012 20:17:21 UTC+2 schrieb Chris Perkins:
>
>
> I wouldn't put too much stock in what it says at clojure.org/reader - it
> hasn't been updated in a long time. The implementation is probably a more
> definitive definition of what characters are allowed.
>
In the past, Ri
On Monday, April 30, 2012 12:19:00 PM UTC-4, Philip Potter wrote:
>
> Note that, even though this works, $ is not a valid character in a
> clojure symbol.
>
> See
> http://groups.google.com/group/clojure/browse_thread/thread/5af5d892f2e84212/0c5dc6b6a1578f07?#0c5dc6b6a1578f07
>
>
> and http://
>
> I think the $ is like /. It's allowed, but has special meaning, that
> is, you shouldn't have those characters in your own symbols.
>
> The documentation there needs to mention $ as special, that's all.
>
>
This '$' convention is all baggage from how inner classes were shoe-horned
into the java
On Mon, Apr 30, 2012 at 9:49 PM, Philip Potter
wrote:
> Note that, even though this works, $ is not a valid character in a
> clojure symbol.
>
> See
> http://groups.google.com/group/clojure/browse_thread/thread/5af5d892f2e84212/0c5dc6b6a1578f07?#0c5dc6b6a1578f07
>
> and http://clojure.org/reader
On 30 April 2012 18:24, Jay Fields wrote:
> Thank you Laurent. You said exactly what I meant, it's not a user defined
> symbol.. it's a "lib"...
>
> I'm not really sure why this is such an issue. The name of the Java class
> contains a $. If you want to use that class, you use a $. If you're defin
Thank you Laurent. You said exactly what I meant, it's not a user defined
symbol.. it's a "lib"...
I'm not really sure why this is such an issue. The name of the Java class
contains a $. If you want to use that class, you use a $. If you're
defining a symbol, the docs on http://clojure.org/reader
2012/4/30 Ben Smith-Mannschott
> On Mon, Apr 30, 2012 at 18:22, Jay Fields wrote:
> > Foo$Bar is the name of the class, and $ is a valid character in a Java
> class
> > name. Foo$Bar is not a clojure symbol.
>
> Sure it is. The reader has to read it somehow. Otherwise the compiler
> will have no
On Mon, Apr 30, 2012 at 18:22, Jay Fields wrote:
> Foo$Bar is the name of the class, and $ is a valid character in a Java class
> name. Foo$Bar is not a clojure symbol.
Sure it is. The reader has to read it somehow. Otherwise the compiler
will have nothing to work with. Also:
user=> (symbol? (re
Great - thanks, yes, it's Foo$Bar/BAZ after an import of Foo$Bar.
Thanks everyone for saving me from more hours inside all the proxy
apparatus.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups
Foo$Bar is the name of the class, and $ is a valid character in a Java
class name. Foo$Bar is not a clojure symbol.
On Mon, Apr 30, 2012 at 12:19 PM, Philip Potter
wrote:
> Note that, even though this works, $ is not a valid character in a
> clojure symbol.
>
> See
> http://groups.google.com/grou
Note that, even though this works, $ is not a valid character in a
clojure symbol.
See
http://groups.google.com/group/clojure/browse_thread/thread/5af5d892f2e84212/0c5dc6b6a1578f07?#0c5dc6b6a1578f07
and http://clojure.org/reader
So: is the behaviour discussed intentional? If so, should $ be mad
That's correct. You'll want to make sure you (:import Foo$Bar) also.
more info:
http://blog.jayfields.com/2011/01/clojure-using-java-inner-classes.html
Cheers, Jay
On Mon, Apr 30, 2012 at 11:44 AM, Tassilo Horn wrote:
> nick rothwell writes:
>
> > I'm faced with the following in some legacy co
nick rothwell writes:
> I'm faced with the following in some legacy code:
>
> public interface Foo { interface Bar { ... String BAZ = "baz"; ... }}
>
> Is there any way of accessing Foo.Bar.BAZ in the Clojure world? I've
> tried various combinations of proxying and reifying with no joy.
Not test
I'm faced with the following in some legacy code:
public interface Foo { interface Bar { ... String BAZ = "baz"; ... }}
Is there any way of accessing Foo.Bar.BAZ in the Clojure world? I've tried
various combinations of proxying and reifying with no joy.
--
You received this message because you
14 matches
Mail list logo