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

Pages: 1-

Haskell vs. CL: The Lesser of Two Evils

Name: Anonymous 2011-05-18 12:36

Go.

Name: Anonymous 2011-05-18 12:38

Lisp

(defmacro if (a b c)
  `(branch ,a (lambda () ,b) (lambda () ,c)))



Haskell

FFfffuuuuu...

Name: Anonymous 2011-05-18 12:52

http://www.prescod.net/python/why.html

Why I Promote Python
by Paul Prescod, ISOGEN Consulting Engineer

Python is flexible, easy, and powerful in a way that cannot be matched by other mainstream languages.

I want to live in a world where most software is written in Python.

Java is decent, and I don't mind it. Therefore I don't begrudge its success. But I consider it a proprietary language surrounded by a re-invent-the-wheel culture.

My dream is a world where...programs are written in a language that...can be taught in primary school.

Python is easy enough to be a first language and powerful enough to write object databases and in-memory relational database engines.

Python allows layers of sophisticated abstractions to be built in concise, understandable ways.

Python may or may not be the language that brings about a Computer Programming for Everybody world. But it is currently the best contender.

I promote Python because doing so is the right thing.

Name: Anonymous 2011-05-18 13:42

Lisp

{0 A->A; N A->r N-1 N*A}

Haskell

using System.Console;
 
public module Yoba
    public Main() : void
 
        def fact(n, acc)
            | (0, _) => acc
            | _      => fact(n-1, n*acc)
 
        def Compose(f1, f2)
           x => f1(f2(x));
 
        def l = [2, 5, 10];
 
        l.Iter(Compose(WriteLine, fact(_, 1)));

Name: Anonymous 2011-05-18 14:47

>>2
if' True  x _ = x
if' False _ y = y


Usage:
*Main> if' (1 == 1) "yes" "no"
"yes"
*Main> if' (1 == 2) "yes" "no"
"no"


And it was a stupid example. Congratulations, you can write if in CL even though it's already built in.

Name: Anonymous 2011-05-18 14:59

>>5
I can express `if` through assembly language. In Haskell you would have to write parser from scratch.

Name: Anonymous 2011-05-18 15:00

>>6
What? I just wrote a function that can be used for conditionals. But my point is that you don't even need to.

Name: Anonymous 2011-05-18 15:01

fuck off idiot trolls

Name: Anonymous 2011-05-18 15:02

>>7
I can express `if` through assembly language. In Haskell you would have to write parser from scratch.

Name: Anonymous 2011-05-18 15:03

>>9
Your and idiot.

Name: Anonymous 2011-05-18 15:07

The `branch` from >>2 is a assembly language instruction. This proves that Haskell morons cannot into assembly.

Name: Anonymous 2011-05-18 15:11

>>11
No shit, it's a high level language.

Name: Anonymous 2011-05-18 15:12

>>12
Haskell is high level. Lisp is general purpose silver bullet.

Name: Anonymous 2011-05-18 15:12

>>11
Also,
cannot into
Polecat kebabs.

Name: VIPPER 2011-05-18 15:14

Seeing threads like these make me wish i was a real programer.
Oh well back to cocking suck for money.

Name: Anonymous 2011-05-18 15:21

Too much trolling in this thread. My answer would be CL as I like dynamically typed languages a lot more and living without proper macros would be painful.

Name: Anonymous 2011-05-18 15:37

>>14
fuck you faggot

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