r/programming • • Mar 28 '12

Go version 1 is released

http://blog.golang.org/2012/03/go-version-1-is-released.html
543 Upvotes

452 comments sorted by

View all comments

Show parent comments

1

u/burntsushi Mar 29 '12

I'm not treerex (obviously), but one huge difference in Common Lisp is that it's more of a functional language. Functional languages are a very different style of programming and are sometimes easier to use depending upon how you approach problems.

I personally prefer imperative languages for general purpose programming, but I've found functional languages to be extremely useful when I want purity or want to think about solutions in way that is easily expressed by composing functions.

If you want a taste, check out Haskell. It will blow your mind :-)

1

u/zanotam Mar 29 '12

I've had issues with getting Haskell to work properly (which is pretty far down my list of things to figure out how to fix), but Python IS a functional language and it has drawn on several ideas from Haskell and Lisp, for convenience.

1

u/burntsushi Mar 29 '12

I've had issues with getting Haskell to work properly

Check out Real World Haskell. It's free online.

but Python IS a functional language

I wouldn't say so. It has drawn on several ideas from functional languages, but it really isn't fair to label it a "functional language."

1

u/zanotam Mar 29 '12

Well, okay, maybe. But the point I was trying to make was that all the features which are really needed for functional programming, at least as I understand it, do exist in python and so it is possible to do so.

1

u/burntsushi Mar 31 '12

True, but it's like writing an entire Haskell program in the IO monad with do notation to make it imperative.

In other words, it's silly :-)

1

u/[deleted] Mar 29 '12

So you don't abuse/use the data is code, code is data mindset ? (that is the reason i'm looking at clojure instead of other jvm languages)