Created
October 21, 2011 16:00
-
-
Save samth/1304207 to your computer and use it in GitHub Desktop.
Programming with syntax in Typed Racket
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#lang typed/racket | |
(: stx Syntax) | |
(define stx #'bar) | |
(syntax-case stx () | |
[foo (identifier? #'foo) (symbol=? 'bar (syntax-e #'foo))] | |
[_ (error 'whoops)]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment