Skip to content

Commit 4843453

Browse files
committed
Qualify undefined cases in semantics contract
1 parent 3b7c323 commit 4843453

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

vignettes/quickr-semantics.Rmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ value — never a different value.
2525

2626
> `quick(f)(x)` either returns exactly what `f(x)` returns — same values,
2727
> same `typeof()`, same shape — or raises an error. Never a third thing.
28+
> The unchecked `NA` inputs and out-of-bounds runtime subscripts documented
29+
> below are outside this contract and have undefined behavior.
2830
2931
When quickr cannot reproduce R's behavior, it refuses. It prefers to
3032
refuse at compile time, when `quick()` is called; when the decision

0 commit comments

Comments
 (0)