Both letrec and letrec* are in R6RS, but there's only letrec in Racket, no letrec*. What are the differences between these?
What's the difference between R6RS's `letrec`, `letrec*` and Racket's `letrec`?
910 views Asked by Ben At
1
There are 1 answers
Related Questions in SCHEME
- Lambda function not returning any value
- Encode "ä", "ö", "ü" and "ß" in scheme (file-output-port)
- How to programmatically expand the let* family of functions in racket
- Is there a way to implement named let as macro to make it work with Petrofsky let
- Scheme Question - How can I check if there are a list of pairs
- call/cc with Break procedure
- How to return in Scheme?
- SiCP Exercise 1.45
- Exercise 12.10 from the book Scheme and the art of programming
- How to write a Scheme function that uses call/cc to calculate factorial?
- Why can't a Scheme macro with the name "if" be defined?
- How to implement "if" in normal order in Scheme?
- Collision with syntax-rules identfiers and global names
- How to use let-values in Gambit Scheme?
- Racket: Issue with Sorting Strings in Ascending Order
Related Questions in RACKET
- Lambda function not returning any value
- How to programmatically expand the let* family of functions in racket
- How can I combine `raco pkg install --scope-dir` and `raco exe`?
- Scheme Question - How can I check if there are a list of pairs
- How to return in Scheme?
- Racket: Evaluate a hand in Blackjack
- why is this define not an expression?
- Issue writing to JSON file - invalid key
- How can I flatten a racket list recursively?
- Making a deck of cards in Racket
- Function typing in TypedRacket
- What are .rkt~ files and what purpose do they serve?
- Parallel HTTP Requests Deadlock when Run from Dr Racket
- Removing all duplicate integers and sublists from a list
- Racket: Using recursion to make a mergesort function
Related Questions in R6RS
- Encode "ä", "ö", "ü" and "ß" in scheme (get german text from file)
- How to convert r6rs macro involving syntax-case to racket?
- How to export the same code as both an R6RS and R7RS library
- Why might the Scheme `filter` form not process list elements 'in order'?
- Is it possible to load an entire file from disk efficiently in Scheme R6RS?
- Left shift into fixnum sign bit
- Forcing left-to-right evaluation order in procedure call
- notation in r6rs grammar for complex numbers
- include vs. load in mit-scheme
- Scheme to C translator
- Chez Scheme: macro import at top level
- Hygienic macro r7rs : Return second expression value
- Rotating a matrix, why isn't it working as a function, yet it does in line command?
- R6RS: Does the syntax expression form applied to the empty list return a wrapped syntax object?
- Racket R6RS support: syntax-case
Related Questions in LETREC
- Why TSPL's letrec example can be run in ChezScheme with only let?
- Is letrec only meant for defining procedures?
- Why is the variable undefined in the initialization form of this letrec?
- Why does let not allow mutually recursive definitions, whereas letrec can?
- Can every letrec be replaced with letrec*?
- Can letrec be the same as letrec*?
- How to use `letrec` to define function "length" within the body of function "lengh-it"
- Generalised letrec semantics for mutual recursion
- Expression for defining letrec implementing little language in Haskell
- Understanding recurive let expression in lambda calculus with Haskell, OCaml and nix language
- Scheme: are `letrec` and `letcc` crucial for efficiency?
- How to implement letrec in Javascript?
- How is it possible that a binding shadows the existing binding in `case of` block?
- Haskell `let` bindings in lambda calculus
- Sharing vs. non-sharing fixed-point combinator
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
In short Racket
letrecand R6RSletrec*is the same. The evaluation order is specified for these. In R5RSletrecthe order is unspecified.Since the order of R5RS
letrecis unspecified implementation can choose a fixed order (for example left to right) or they can let the compiler choose different orders for each use (in order to get faster code).From the Racket documentation.
R5RS letrec:
Racket letrec:
R6RS
letrec*: