tobogganSe connecter

louise

Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.

Types: row evidence variables and bundled arrows (ADR 0066, stage 1)

A row variable in a row argument of an effect (`e` in later<e>, `r` in
later<<ask | r>>) is an evidence variable: it may stand for handlers a
caller supplies, which any other row variable still refuses (E0202).
Schemes record theirs (Scheme::evidence); inference variables and
signature rigids carry a mark: evidence, plain (a scheme's other
variables) or undecided. An evidence row and a plain one never unify,
nor does either with the other's closed end: Ty::RowEvidence closes the
rows evidence variables stand for, and an arrow ending in either is
bundled (InferCtx::is_bundled). A call whose callee's row and the
current one disagree stops the callee's row at the current labels.

A callee's labels whose row arguments are unknown are resolved before
its arguments are checked, so a lambda passed to `later` knows what it
receives; a label a lambda's evidence variable comes to stand for while
its body is checked is a handler it receives; a call supplies those its
callee receives through an evidence variable. Types only: nothing is
lowered differently yet.

A type's row parameter (Iter<a, e>) makes no evidence variable: std/iter
would no longer type. ADR 0066 records the representation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

olivier · il y a 4 sem. · 59b5640eb767e93950fd518ee5f4a25b7bff8e70

Parents 6047992

8 fichiers modifiés, 807 ajouts, 59 suppressions