Yes, thanks Mark. It seems to me that you are saying "namespaces make poor
maps".  Stipulated.  So why not use records or maps?

I think that where my experience differs from yours is summarized in your
comment "In Clojure, a project often begins with a bunch of functions
sharing some immutable state or "magic constants" stored in vars." I
*never* do that.  If there are a group of related things, I put them in an
associative container (maybe just a map) on day one.

The analogy with OO is misleading here.  If you started an OO project
putting everything in static/singleton members, you would have the same
pain you attribute to Clojure's namespaces.

I find this to be a "my car doesn't have wings" argument, and the kind of
thing that leads into casually complecting everything with everything else.

Stu




On Thu, Dec 26, 2013 at 10:04 PM, Mark Engelberg
<mark.engelb...@gmail.com>wrote:

> Does this OO pseudocode help clarify at all?
> https://gist.github.com/Engelberg/8142000
>
> On Thu, Dec 26, 2013 at 6:27 PM, Stuart Halloway <
> stuart.hallo...@gmail.com> wrote:
>
>> Hi Mark,
>>
>> I am not following your example.  Can you post (pseudocode fine) what a
>> good OO impl would look like, and why Clojure's defrecords can't do
>> something similar?
>>
>> Stu
>>
>>  --
> --
> 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
> ---
> 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 clojure+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
-- 
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
--- 
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 clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to