-
-
Save ralsei/a5cbaad4c649bcf82c4fa1abbb2ce35d to your computer and use it in GitHub Desktop.
typed racket parameters
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 | |
(provide param) | |
(: param (Parameterof Integer)) | |
(define param (make-parameter 3)) |
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 racket | |
(provide param) | |
(define param (make-parameter 3)) |
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 racket | |
(require "a-typed.rkt") | |
(provide param2) | |
(define param2 param) | |
; in toplevel: | |
; (require "a-typed.rkt" "b-untyped.rkt") | |
; (parameter-procedure=? param param2) => #f |
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 racket | |
(require "a.rkt") | |
(provide param2) | |
(define param2 param) | |
; in toplevel: | |
; (require "a.rkt" "b.rkt") | |
; (parameter-procedure=? param param2) => #t |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment