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

リスプ-1。

Name: Anonymous 2012-03-27 14:22

Whats your favorite Scheme standard nowadays, /prog/? Are you coding from a standard or implementation specific?

        1975 "Scheme: an interpreter for extended lambda calculus"
3 yrs   1978 RRS
     << 1984 SICP >>
7 yrs   1985 RRRS
1 yr    1986 R3RS
5 yrs   1991 R4RS
     << 1996 SICP 2nd E >>
7 yrs   1998 R5RS
     << 2001 HtDP >>
9 yrs   2007 R6RS
5 yrs   2012 R7RS-SmL-draft6

Name: Anonymous 2012-03-28 9:33

>>10
Something like
(define-datatype list
 (cons car cdr)
 (nil))

?
It doesn't feel much different than (define-record cons (car cdr)), (define-record nil ()), or maybe I'm just retarded and can't figure out Lisp-friendly ADTs on my own. Care to give me an example of what you mean?

>>11
call/cc isn't really worth the pain, delconts are simpler to implement, easier to use, and can be less memory-intensive and faster.
Can't you build everything out of lists (and other primitive aggregate types)?
That's how you implement records on top of R5RS, using vectors. But, sometimes, you really want records to not be vector?s, and redefining vector-* feels wrong IMO.

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