Listed #:as keyword available in define-primop

This commit is contained in:
Milo Turner 2017-03-23 17:29:47 +00:00 committed by Stephen Chang
parent 02fbf9f6d5
commit 2e03856589

View File

@ -238,7 +238,9 @@ A @racket[syntax-parse]-like form that supports
@defform*[((define-primop typed-op-id τ)
(define-primop typed-op-id : τ)
(define-primop typed-op-id op-id τ)
(define-primop typed-op-id op-id : τ))]{
(define-primop typed-op-id op-id : τ)
(define-primop typed-op-id #:as op-id τ)
(define-primop typed-op-id #:as op-id : τ))]{
Defines @racket[typed-op-id] by attaching type @racket[τ] to (untyped)
identifier @racket[op-id], e.g.: