> How does gen-class etc. fit into this new (ns) world? I'm not sure. I've stepped away from this thread (and the mailing list in general) for a bit to focus on the mounting amount of work I have to finish before the deadline hits, so I haven't had much more time to think about this, and I'm also not very familiar with :gen-class.
Looking at the example in The Joy of Clojure, my first impression is that
:gen-class looks like one hell of an ugly beast by itself:
(ns joy.gui.DynaFrame
(:gen-class
:name joy.gui.DynaFrame
:extends javax.swing.JFrame
:implements [clojure.lang.IMeta]
:prefix df-
:state state
:init init
:constructors {[String] [String]}
:methods [[display [java.awt.Container] void]
^{:static true} [version [] String]])
(:import ... ))
Looking at that, I think most of it can be kept as-is, except perhaps for the
sake of supporting both versions of ns it might be worth turning the outer
parenthesis into brackets. Also, what is the purpose of the :name keyword? Are
there legitimate situations where you'd want to have a name other than the
namespace that can't be called poor design? Other than that, I don't personally
have any ideas on how that could be simplified.
I hope to respond to the other emails in this thread when I get the time to,
especially Timothy's. Hopefully that'll happen once I finish one project in
about a week or so.
Cheers,
Greg
--
Please do not email me anything that you are not comfortable also sharing with
the NSA.
On Aug 9, 2013, at 6:23 PM, Mark Derricutt <[email protected]> wrote:
> How does gen-class etc. fit into this new (ns) world?
>
>
> On 6/08/2013, at 4:28 AM, Greg <[email protected]> wrote:
>
>> I haven't put enough thought into this as I could, but this seems good
>> enough already to kick the ball rolling.
>>
>> If the above syntax can't be made to support the old school syntax as well,
>> another thought would be to create a new name for the declaration, calling
>> it "include" or something like that instead of "ns".
>
>
> --
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to [email protected]
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Clojure" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
signature.asc
Description: Message signed with OpenPGP using GPGMail
