An interpreter of FEEL, written in Rust, with integrations for PostgreSQL, WASM, Lua, and Python.
feat(core): range properties + instance of for comparison-test value
public
feat(core): range properties + instance of for comparison-test value
§10.3.2.7 ("Ranges", Table 42) calls the single-endpoint-operator form
`(< 10)` / `(>= 10)` / … "a typed instance of the range type": it has the
four range properties and conforms to `range<T>`. ADR-32 had shipped it as
the opaque `Value::UnaryTestVal` but declared it typeless with no member
access — a §10.3.2.7 deviation. Add a `Value::UnaryTestVal` arm to both
`member_access` (eval.rs) and `value_conforms_to` (types.rs), derived from
the boxed `{ op, endpoint }` per Table 42: the operator's missing endpoint
is `null` + not included, the present endpoint's inclusivity follows the
operator, and the present endpoint must conform to `T` (the undefined side
vacuous, like an unbounded `Range` endpoint).
Equality stays opaque (ADR-32, unchanged): `(=10).start`/`.end` are `10`/`10`
yet `(=10) ≠ [10..10]`, and `(<10) instance of range<number>` is true yet
`(<10) = (..10)` is false — projections and equality are independent facets,
exactly as TCK 0068 + 0074 jointly demand. `Value` stays 40 bytes.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>