you can easily access a packaged scoped field using reflection without
having to write java. in fact there are functions in contrib to do
just that, please use them instead of writing java.

On Tue, Apr 5, 2011 at 3:18 PM, Stuart Sierra
<the.stuart.sie...@gmail.com> wrote:
> It's a legitimate concern, but not necessarily a bug at this point.  So it
> becomes a design decision: should Clojure support access to package-scoped
> fields?
>
> Personally, my initial reaction is that it should not.  Package-scoped
> fields are a quirk of Java.  The solution on StackOverflow is adequate:
> write a small Java class with the correct package-level access.
>
> On the other hand, Clojure has a stated goal of seamless interoperability
> with Java.  If you have use cases for which the lack of package-scoped field
> access is a serious problem, then I would encourage you to document them in
> a new page on the Clojure design wiki (dev.clojure.org).  If you decide to
> do that, try to focus on the problems you're having and the inadequacy of
> existing solutions, rather than immediately proposing a change to the
> compiler.
>
> We've been using a process like this for feature discussions within the
> Clojure/core team.  Although the process isn't very well documented or
> formalized yet, you can see lots of examples on the wiki, such as my recent
> efforts at http://dev.clojure.org/display/design/Asynchronous+Events
>
> -Stuart Sierra
> clojure.com
>
> --
> 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



-- 
And what is good, Phaedrus,
And what is not good—
Need we ask anyone to tell us these things?

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