I agree though, proxy is off-putting.  It just looks so much less clean than
the rest of Clojure.

On Fri, Sep 18, 2009 at 6:43 PM, CuppoJava <patrickli_2...@hotmail.com>wrote:

>
> Hi Nikolay,
> In my opinion it's hard to reduce the verbosity of proxy without
> sacrificing some of its generality. For my own code I just made a
> new_listener macro that simply returns a new actionListener for me.
> This worked fine since 99% of the time, I only use proxies for
> actionListeners anyway. I think you're probably too focused on making
> sproxy as general as you can, which sometimes is not always better.
>
> My code simply looks like this:
>
> (new_listener
>  (println "Running")
>  (.getEventName action_event))
>
> I think that's very readable is it not?
>  -Patrick
> >
>


-- 
John

--~--~---------~--~----~------------~-------~--~----~
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