Re: monkeypatching in clojure

2010-03-08 Thread cageface
On Mar 8, 12:47 pm, Richard Newman wrote: > Interesting reading from 2006: > > http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-of-nouns... Yeah I was just reading that this weekend actually. To be clear, I'm not knocking the verb-oriented approach. I guess I just think it's interest

Re: monkeypatching in clojure

2010-03-08 Thread Richard Newman
Yeah I'm not talking about OO vs FP but about the function-centric approach that Lisps and languages like Haskell take as opposed to the object, or noun-centric approach of languages like Java or Ruby. Interesting reading from 2006: http://steve-yegge.blogspot.com/2006/03/execution-in-kingdom-o

Re: monkeypatching in clojure

2010-03-08 Thread cageface
On Mar 8, 11:48 am, Raoul Duke wrote: > uh, hey, wait a second, please note that is about type checking, not > about OO vs. FP! Yeah I'm not talking about OO vs FP but about the function-centric approach that Lisps and languages like Haskell take as opposed to the object, or noun-centric approach

Re: monkeypatching in clojure

2010-03-08 Thread Raoul Duke
On Mon, Mar 8, 2010 at 11:40 AM, cageface wrote: > The one potential downside I've seen to the function-oriented approach > is that you often wind up encoding the argument type in the function > name. uh, hey, wait a second, please note that is about type checking, not about OO vs. FP! sincerely

Re: monkeypatching in clojure

2010-03-08 Thread cageface
The one potential downside I've seen to the function-oriented approach is that you often wind up encoding the argument type in the function name. For example, if I write a library to manipulate SQL databases I might write a lot of functions that start with db- and resultset- and statement- etc. So

Re: monkeypatching in clojure

2010-03-08 Thread Konrad Hinsen
On 8 Mar 2010, at 17:39, cageface wrote: this just a non-issue in Clojure? Since functions aren't attached to objects it seems to me you can just define a new function on an existing type or another method clause in a multi or if necessary. Maybe you have to be careful about messing around with

monkeypatching in clojure

2010-03-08 Thread cageface
I've been reading about some of the clever things Scala does to allow safer monkeypatching and this started me thinking about Clojure's approach to this technique. Maybe I'm overlooking something but is this just a non-issue in Clojure? Since functions aren't attached to objects it seems to me you