On Feb 15, 9:04 pm, MS <5lvqbw...@sneakemail.com> wrote:
> Hi, I just (mostly) finished reading the Programming Clojure book and
> while it gave a great overview of the language, I'm still at a loss
> for how to design programs.
>
You'll get better answers later but here is my take on it.

> Maybe my mind has been polluted by OO concepts.
>
Maybe a combination of OO and static typing.

> For example, I'm trying to figure out how to do polymorphism in FP.
> Specifically, an electrical circuit "is a" type of graph (vertices and
> nodes).  

I would say an electrical circuit is a type of datastructure and you
already have those built in to the language. There's no need to set up
a type hierarchy to express it. My first approach would be to build a
datastructure that can describe an electrical circuit.

Saul

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