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

Can common lisp do THIS?

Name: Anonymous 2018-01-10 13:47

(define-syntax toaster
(lambda (stx)
(syntax-case stx ()
[(_ x) #'"toasted something"]
[(_) #'"toasted nothing"]
[_ #'"this is a toaster"])))

(display toaster)
(newline)
(display (toaster))
(newline)
(display (toaster a))
(newline)


Scheme wins again.

Name: Anonymous 2018-01-11 12:38

That's cute, but syntax-case is not defined in da standard.

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