Skip to content

Commit 017c844

Browse files
committed
Add extra note on lazy parsing
1 parent 4139437 commit 017c844

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/user/polyglot.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ code will not be re-parsed with the modified binding. You may even find that
3737
you create a race condition, or parse against a binding in a state during the
3838
execution of another source.
3939

40+
To complicate this - Ruby parsing in TruffleRuby is lazy. Your code won't be
41+
parsed until it is executed for the first time.
42+
4043
## Loading code written in foreign languages
4144

4245
`Polyglot.eval(id, string)` executes code in a foreign language identified by

0 commit comments

Comments
 (0)