On Feb 10, 9:33 pm, Meikel Brandmeyer <m...@kotka.de> wrote:
> Hi,
>
> Am 10.02.2011 um 16:27 schrieb jkrueger:
>
> > a) This is essential to writing understandable code, so it would be
> > nice if the language supported it out of the box
>
> Is that so? I'd rather say that this a personal opinion of yours. There are 
> different ways to organise code and neither is superior to the other. Just 
> different.
>

Well... It is Robert C. Martin's opinion. I just happen to agree with
him. I don't mean to call on a higher authority as an argument
stopper. But people who have put a lot of thought into organizing
code, seem to have arrived at this opinion. I definitely phrased the
original sentence too strongly. I should have said that I _think_ that
it is essential to writing readable code.

> > b) A namespace feels to me like a set of functions (ns-publics
> > actually returns a map). That Clojure enforces a particular ordering
> > (if we forget about the "declare" kludge) while writing a namespace
> > seems arbitrary from a programmers point of view.
>
> But Clojure's model of evaluation of a namespace also has a simple elegance. 
> Defining a function is treated equally to adding two numbers. Everything is 
> consistent. It is easy to determine what happens when. There are no special 
> cases. This should seem quite logic from a programmers point of view.
>

I'm perfectly willing to be convinced that I'm wrong if there are good
reasons not do this in Clojure. That's why i brought it up as a
discussion. Additional complexity in the core language is obviously a
concern. Still, I feel that the fixed ordering is a restriction that
is very bothersome when trying to clean up my code. I think I will
spent some more time thinking about how this would actually affect the
language.

> Sincerely
> Meikel

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