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-10 15:42

I fail to see how this can't be done with a macro

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