Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Thinking in Lisp

Name: Anonymous 2012-02-04 20:31

SQL, Lisp, and Haskell are the only programming languages that I've seen where one spends more time thinking than typing.
That's because it takes forever to think of the solution in Lisp and Haskell as opposed to a decent language. Faggot lispers will spend most of their time figuring out how best to abuse recursion because they think it makes them leet programmers or some shit.

Name: previous post was incomplete 2012-02-06 13:10

>>52
What I am saying is that Lisp is not necessarily S-exprs.  Lisp is a certain way of doing things, among which homoiconicity and macros.  But the surface syntax does not have to be S-expressions and I would argue that it could still be called Lisp, as long as there is an obvious and trivial mapping to a S-expressions-based Lisp.  I agree with you, rejecting everything that Lisp brings just because of its surface syntax is a tad bit silly.  But there's more than one way to get past it, and it doesn't have to be "well just get used to it".

People rejecting functional programming
With a few exceptions, Lisp allows side effects (but indeed encourages functional programming).  Implicit parallelization does not require purely functional programming style all throughout the language; the compiler must merely prove that a particular time-consuming function is pure, regardless of whatever impure things it does inside.  Functional programming is nice, but sometimes it's cumbersome not to just write things out imperatively.  I can't imagine writing a codec or a cryptographic library in purely functional style.  It's obviously possible (by Turing equivalence), but sometimes you just want to a[i] += f(x,y,z).  Yes, 98% of my functions *are* pure functions (possibly containing impure things like multiple assignments to the same variable), and the remaining 2% will probably be I/O and the likes.

So no, I don't see the point of forcing upon the user S-expressions nor purely functional programming.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List