On Jul 22, 3:32 pm, Phil Hagelberg <p...@hagelb.org> wrote:
> Stuart Halloway <stuart.hallo...@gmail.com> writes:
> > As a first pass, I have trimmedhttp://clojure.org/getting_started, and quite
> > clearly linked out tohttp://dev.clojure.org/display/doc/Getting+Startedfor
> > advice on tools, IDEs, etc.
>
> That's a huge improvement; glad to see it finally getting some attention.
>
> I have heard that the single-dot syntax is deprecated for use outside
> macro writing. So this sample should probably be replaced:
>
>     (. javax.swing.JOptionPane (showMessageDialog nil "Hello World"))
>
> The modern equivalent would be:
>
>     (javax.swing.JOptionPane/showMessageDialog nil "Hello World")

You also need the bare-dot syntax for distinguishing fields from no-
arg methods: (. foo (x)) vs (. foo x) - iirc (.x foo) can have trouble
deciding which one to expand into.

-- 
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, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to