Dear Clojurians,

after working some days with gen-class I've come up with some thoughts.

- gen-class should require the namespace not the implementation file
  directly. The namespace is responsible to make the implementation
  available. As Rich stated in other threads: the namespace is the
  the unit that matters, not the file. Otherwise one has to redo the
  same initialisation again and again, once per class.

- I got bitten again by the -/_ duality in namespaces. It would be nice
  if foo_bar.SomeClass was translating to foo-bar/SomeClass-*.

- It would also be nice if classes defined in a namespace were available
  to the namespace w/o special import. So that code in the foo_bar (<-
  foo-bar) namespace could use (new SomeClass) directly. Similar to the
  "package" in Java.

Just some observations, while using gen-class...

Sincerely
Meikel

PS: I have only rare access to the net at the moment. So I am not
quite up-to-date. So I'm sorry in case that was already discussed
before.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to