touchups
parent
e69ab2ff5f
commit
3d8a22b6b5
@ -1,14 +0,0 @@
|
||||
#lang racket/base
|
||||
(require (for-syntax racket/base))
|
||||
|
||||
(provide bound/c (rename-out (top~ #%top)))
|
||||
|
||||
(define-syntax-rule (top~ . id)
|
||||
(λ x `(id ,@x)))
|
||||
|
||||
(define-syntax (bound/c stx)
|
||||
(syntax-case stx ()
|
||||
[(_ x)
|
||||
(if (identifier-binding #'x )
|
||||
#'x
|
||||
#'(#%top . x))]))
|
@ -1,5 +0,0 @@
|
||||
#lang racket/base
|
||||
(require "bound.rkt")
|
||||
|
||||
(bar "hello") ; bar is unbound
|
||||
((bound/c bar) "hello")
|
Loading…
Reference in New Issue