Skip to content

Commit 8ac0d21

Browse files
committed
add note about call-by-value evaluation
1 parent d09aa62 commit 8ac0d21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ This project consists of a lambda calculus expression parser using
6262
interpreter based on [Matt Might's implementation in
6363
scheme](http://matt.might.net/articles/implementing-a-programming-language/).
6464

65+
The interpreter is *call-by-value* which means that recursive calls need to be
66+
wrapped in a function to prevent them from being evaluated eagerly.
67+
6568
For examples of how to do numbers (church encoding), booleans, arithmetic,
6669
boolean logic, looping (recursion), etc. look at `example.php`.
6770

0 commit comments

Comments
 (0)