Break the monolithic examples/50-smoke.sx into 30 focused per-section examples,
filed into their category blocks (basic/types/comptime/memory/protocols/ffi),
each carrying only the top-level decls its section references (the protocols
section keeps the full preamble — its deps flow through UFCS method calls that
name-based extraction can't see). Outputs verified identical to the original
section blocks.
Add examples/1036-errors-failable-smoke.sx — an end-to-end error-handling example
(the E5.4 work): named + inferred error sets consumed via destructure, try (in
helpers), catch (bare-expr / match-body / diverging / no-binding), or
value-terminator, onfail+defer interleave, and error.X value + {} tag
interpolation.
Remove examples/50-smoke.sx. Suite: 324 passed, 0 failed.
20 lines
263 B
Plaintext
20 lines
263 B
Plaintext
tag: BadDigit
|
|
parsed: 10
|
|
got: BadDigit
|
|
catch-expr: 100
|
|
catch-match: 1
|
|
or-default ok: 10
|
|
logged BadDigit
|
|
or-default err: -1
|
|
or-value: 55
|
|
or-chain: 16
|
|
pair-catch: 0 0
|
|
pair-ok: 8 10
|
|
check absorbed
|
|
acquire fail:
|
|
onfail B
|
|
defer A
|
|
acquire ok:
|
|
defer A
|
|
errors ok
|