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

Post Code

Name: Anonymous 2011-03-04 21:33

One recurring complaint is that nobody talks about code on /prog/. So everyone write go and write some code, any code, that does something, anything, and post it. A small explanation wouldn't go amiss either.

Name: Anonymous 2011-03-18 13:50

>>193
Portable if all you want is a list of numbers.
guile> (iota 0 50 2)

Backtrace:
In current input:
   1: 0* [iota 0 50 2]

<unnamed port>:1:1: In procedure iota in expression (iota 0 50 ...):
<unnamed port>:1:1: Wrong number of arguments to #<procedure iota (n)>
ABORT: (wrong-number-of-args)


>>197
And loop isn't in Scheme, either. Which really just goes to show that, despite some people's blindness to anything other than the parentheses, Lisp and Scheme are different.

Personally I prefer to think of Lisp not as a language but as an ABSTRACT semantic structure, which languages like CL, Scheme, and so on are constructed on top of. You can't really expect to give Racket source to SBCL and expect the code to run, even though sometimes it might work by sheer chance. By the same reasoning, you might be able to print("Hello") in many different languages, but they're far from similar.

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