Risks of (over-)using destructuring?

2009-07-23 Thread pcda...@gmail.com
Hi. I'm learning Clojure, and I like a lot what I've seen so far. Thank you Rich for designing such a nice langage, and Stuart for writing such a great book! I'm a little worried about the pattern matching/destructuring binding feature though. It looks very powerful, but also very dangerous. It

Re: Risks of (over-)using destructuring?

2009-07-24 Thread pcda...@gmail.com
On Jul 24, 12:23 am, Jeremy Gailor wrote: > Hi David, > > I would say that this is a problem in any programming language that makes > use of an external library.  If the public API of a library changes, you're > going > to need to update the code that acts as a consumer of that library. I under

Re: Risks of (over-)using destructuring?

2009-07-24 Thread pcda...@gmail.com
On Jul 23, 10:15 pm, Richard Newman wrote: > > Coming from an OO background which puts a strong focus on data   > > encapsulation, > > this makes me a little nervous. > > The same problem exists with OO. Not to the same extent, unless you expose all the internals of your classes (including field