You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 0f9552d
Browse filesBrowse the repository at this point in the historyBrowse files
47 functions of a person, every one of a shape of its own, are written
twice over two sets of captured values; with the second set every
choice takes its other branch. Five laws are checked on them: a
function has one key and one hash code whatever values it captured, no
two functions have one key, the key and the values are the same with
and without the template, the template holds a variable for every slot
and no captured value, and the template with the values put back
computes what the compiled code computes. The compiler passes each
function together with its quotation, and Unquote evaluates the
template.
The other tests state what the laws cannot: which values are slots,
under which names and with which values, which default value is a
literal and which is data, also for a struct whose constructor throws
(a struct that F# cannot declare, which one helper makes at run time
for this test and for the one of the evaluator), that two nodes are two
slots whatever they
hold, what is a part of the key, that a value which is
bound once is computed once, that a quotation which is spliced into two
places is one slot, that a branch that is not taken is not computed,
what the functions of Query do, the tokens of a small key one by one,
and every error.
The check that tells which parts can be computed is tested with the
evaluator: it accepts every part the evaluator computes, refuses a
function, a variable and a quotation, and runs no code to tell.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments