Re:Idiomatic Clojure with LightTable
by chongli on Monday November 18, 2013 @07:52PM
(#6758467)
Erik Meijer has complained about this in the past. The answer is that it require a change in thinking. Object-oriented programming encourages the programmer to think about objects first (duh) and later ask what methods are available to them. Functional programming is the opposite. You think of the verbs first; the nouns themselves are interchangeable. So the simple answer is this:
Pressing tab (or whatever invokes your auto-complete) would pop up a list of options such as this:
As for exploration, Clojure has tools such as doc and find-doc to help you search for a particular function.
[ Parent
| on HN ]
Re:Idiomatic Clojure with LightTable
by seanmcdirmid on Tuesday November 19, 2013 @07:51AM
(#6760779)
So the noun is encoded after the verb. I've seen scheme libraries like this, and makes me wonder there really are some non trivial purely verb libraries out there for functional languages?