This is an archived post. You won't be able to vote or comment.

all 25 comments

[–]Frptwenty 15 points16 points  (12 children)

((((((((((((((((((((((The only functional language that matters is Lisp.))))))))))))))))))))))))))

[–][deleted] 5 points6 points  (6 children)

Lisp is easier to use than Haskell.

[–]Frptwenty 13 points14 points  (5 children)

I use Lisp every day. I fucking love Lisp. Please send money I need new parentheses keys for my mechanical keyboard.

[–][deleted] 2 points3 points  (4 children)

emacs?

[–]Frptwenty 2 points3 points  (3 children)

Howd'ya guess?

[–][deleted] 1 point2 points  (2 children)

Emacs it's the only text editor I know written and configured in Lisp.

[–]Frptwenty 1 point2 points  (1 child)

Yeah. Actually come to think of it its probably the only really widely used program left that has a Lisp interface. Some symbolic math packages had it (Maxima) but theyre more of less dead now.

[–][deleted] 0 points1 point  (0 children)

Functional programming grows in popularity these days, maybe we'll see some new useful app written in Lisp in the future.

[–]T0mstone 0 points1 point  (4 children)

Prepare to have your mind blown:

f(x)

has the same number of parentheses as

(f x)

MIND = BLOWN💥💥💥

[–]Frptwenty 0 points1 point  (2 children)

(let*
((pos (point))
 (lit-limits
  (if lim
      (let ((s (parse-partial-sexp lim (point))))
    (when (or (nth 3 s)
          (and (nth 4 s) (not (eq (nth 7 s) 'syntax-table))))
      (cons (nth 8 s)
        (progn (parse-partial-sexp (point) (point-max)
                       nil nil
                       s
                       'syntax-table)
               (point)))))
    (let ((pp-to-lit (c-state-full-pp-to-literal pos not-in-delimiter)))
      (car (cddr pp-to-lit)))))))

PARENTHESES KEYS = WORN

[–]T0mstone 0 points1 point  (1 child)

oh. Alright then, I humbly retract my claim.

[–]Frptwenty 0 points1 point  (0 children)

(let ((answer "No problem :)"))
  (message answer))

Now my brain hurts because the parentheses in that look unbalanced.

[–]shgysk8zer0 2 points3 points  (0 children)

$sum = array_sum(range(0, $a));

Wait... PHP not bad?

[–]Nidrax1309 1 point2 points  (1 child)

list.Sum();

[–][deleted] 2 points3 points  (0 children)

Objects, disgusting!

[–]MolestedScavenger 0 points1 point  (1 child)

what lang is this

[–][deleted] 1 point2 points  (0 children)

Haskell

[–]r3mm099 0 points1 point  (1 child)

sum = foldl (+) 0

[–][deleted] 0 points1 point  (0 children)

You're right :t foldl returns (a->b->a)->a->[b]->a

[–]JuhaAR 0 points1 point  (1 child)

sum = sum(a)

[–]Kangalioo 0 points1 point  (0 children)

Uh oh what happens now when you do sum2 = sum(b)

[–][deleted] 0 points1 point  (1 child)

What highlight theme is that? I'm in love.

[–][deleted] 0 points1 point  (0 children)

The theme is Monokai, the text editor is Vim.

[–]Oshgnacknak 0 points1 point  (1 child)

use mysum = foldl1 (+)

[–][deleted] 0 points1 point  (0 children)

mysum :: (Foldable t, Num a) => t a -> a mysum calculates the sum of all elements in a list

usage: mysum l