Created
May 4, 2012 20:12
-
-
Save aturon/2597424 to your computer and use it in GitHub Desktop.
racket's escape analysis
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
; when compiled, does this code ... | |
(define (abs x) | |
(define (f) | |
(if (> x 0) x (g)) | |
(define (g) | |
(- 0 x)) | |
(f)) | |
; ... turn into this code? | |
(define (abs x) | |
(if (> x 0) x (- 0 x))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment