Pages: « 1 2 3
  Print  
Author Topic: Second time  (Read 6628 times)
Offline (Male) RetroX
Reply #30 Posted on: October 18, 2009, 02:44:57 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Or is this sarcastic? Obviously I don't use sarcasm enough if nobody can tell.
You use it too seriously.
Scheme is horrible.  You can't execute more than one "line" per function, making them useless.
« Last Edit: October 18, 2009, 02:46:50 PM by RetroX » Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Unknown gender) luiscubal
Reply #31 Posted on: October 18, 2009, 02:58:37 PM
Member
Joined: Jun 2009
Posts: 452

View Profile Email
Excuse me? One "line" per function?

(define xyz
(lambda (a, b, c)

(print a)
(print b)
(print c)

)
)

I just made a valid Scheme function with 3 statements.
Logged
Offline (Male) Rusky
Reply #32 Posted on: October 19, 2009, 08:02:55 AM

Resident Troll
Joined: Feb 2008
Posts: 955
MSN Messenger - rpjohnst@gmail.com
View Profile WWW Email
Wow, sarcasm fail. All of you.

Also, Retro missed the point. Lisp isn't supposed to execute, it's supposed to be evaluated. It's functional:
Code: [Select]
(defun factorial (n)
  (if (= n 1)
      1
      (* n (factorial (- n 1)))))
You're supposed to describe formulas and use as little actual state as possible. Thus why it actually is extremely cool. And either way, you can still do multiple lines like that.
Logged
Offline (Unknown gender) Micah
Reply #33 Posted on: October 19, 2009, 06:55:45 PM

Resident Troll
Joined: May 2008
Posts: 129

View Profile
Haskell is cooler, because it's Lisp with expressive syntax, compilation, pure functionality (as in functions, not as in working), and a very good static type system.

I wrote a lexer from scratch in Haskell in 15 lines, and it was only that long because I pressed enter a bunch to make it more readable. And it would have been extremely easy to expand or modify it.

And how about we start using the Snark? This is how you use it.~
Logged
Offline (Male) RetroX
Reply #34 Posted on: October 19, 2009, 07:10:11 PM

Master of all things Linux
Contributor
Location: US
Joined: Apr 2008
Posts: 1055
MSN Messenger - classixretrox@gmail.com
View Profile Email
Excuse me? One "line" per function?

(define xyz
(lambda (a, b, c)

(print a)
(print b)
(print c)

)
)

I just made a valid Scheme function with 3 statements.
That somehow didn't work for me, forcing me to:
(display
 (string-append (string-append (string-append
  "You ate "
  (number->string meat))
  " meats.\n")
  "I don't even know how that's possible.\n\n"
  )
 )

string-append string-append string-append number->string

My teacher hasn't taught us anything all year, and google was being mean to me.
Logged
My Box: Phenom II 3.4GHz X4 | ASUS ATI RadeonHD 5770, 1GB GDDR5 RAM | 1x4GB DDR3 SRAM | Arch Linux, x86_64 (Cube) / Windows 7 x64 (Blob)
Quote from: Fede-lasse
Why do all the pro-Microsoft people have troll avatars? :(
Offline (Unknown gender) Game_boy
Reply #35 Posted on: October 21, 2009, 10:58:45 AM
Member
Joined: Apr 2008
Posts: 228

View Profile
Any progress? Or is workload still an issue?
« Last Edit: October 23, 2009, 12:01:14 PM by Game_boy » Logged
Pages: « 1 2 3
  Print