Skip to content

Commit

Permalink
Question on labels in Con notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
dvanhorn committed Dec 29, 2022
1 parent af6fc6f commit 557aaf3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion www/notes/con.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ branch, then (unconditionally) jump over the then branch code.
To accomplish this, we will need two new labels: one for the then
branch code and one for the end of the then branch code. The
@racket[gensym] function can be used to generate symbols that have not
appeared before.
appeared before. @margin-note{Q: Why should we generate label names
here? What would go wrong if simply used labels like @racket['l0] and
@racket['l1]?}

In total, the code for this example would look like:

Expand Down

0 comments on commit 557aaf3

Please sign in to comment.