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

An improvement for LISPs

Name: Anonymous 2008-12-22 15:56

So I'm starting to learn LISPs quite a lot lately, and I'm fascinated by how everything is a list! It's brilliant! Absolutely brilliant. But I had second thoughts when I found out that LISP has primitives like integers and strings. This disturbed me greatly, so I was forced to come up with a superior LISP model that only uses lists:

1. An integer i is a list li of empty lists such that (length li) == i.
2. A character is an integer i such that i < 256.
3. A string is a list of characters.
4. A float is a list of integers of length two.

What do you guys think of my idea?

Name: Anonymous 2008-12-22 15:57

0/10

Name: Anonymous 2008-12-22 15:58

I do not support this idea. It would greatly reduce the speed of my fact and fib programs, which I use very often.

Name: Anonymous 2008-12-22 16:02

'((()()()()()()())(()()()()()()()()()()))

Name: Anonymous 2008-12-22 16:58

(apply '((x) (+ x 1)) '(2))

Name: Anonymous 2008-12-22 17:15

>>1
How about handling a string as a list of arbitrary objects which might or might not be characters. Then you get ropes for free, as well as being able to handle arbitrary formatting, embedded images and other objects, etc. with standard data structures.

Name: Anonymous 2008-12-22 17:20

>>5 You mean (apply ''((x) (+ x 1)) '(2))

Name: Anonymous 2008-12-22 19:37

Alonzo Church, is that you?

Name: Anonymous 2008-12-22 22:24

>>5 , >>7
A procedure ought not become an unprinted object in >>1 's LISP.

Name: Anonymous 2009-03-06 6:13

characters in their fucking   language If it   was there and   wiped the file   you just saved   r n4 r?

Name: Anonymous 2010-11-16 1:22

Name: Anonymous 2010-12-04 4:32

Name: Anonymous 2013-01-19 21:05

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

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