Skip to content

Clarify Chapter 3 batch validation and typed conversion - #118

Merged
skyzh merged 1 commit into
mainfrom
forge/chapter3-validation-clarity
Sep 23, 2026
Merged

skyzh merged 1 commit into
mainfrom
forge/chapter3-validation-clarity

Conversation

@skyzh

@skyzh skyzh commented Sep 23, 2026

Copy link
Copy Markdown
Owner

Why

A reader spotted that Chapter 3 checks each input's physical type in validate_expression_inputs and again in ColumnView<S>::try_from. The chapter's opening said to “validate a batch once,” which obscured the repeated check.

Change

Clarify the one-page learner path: batch preflight checks arity, expected physical types, and equal row counts before traversal; the fallible typed conversion checks physical type again while constructing Array, Constant, or Indexed views. For unary evaluation, the validator's type comparison adds no independent safety over that conversion. The row-loop guarantee now follows both steps. No code, tests, API, or other chapter changed.

Review note

  • Exact base a2e49809e2556dfcd9abd410b04d7b0278d55b41; head 3107905f9036447db391f2792ab268d11a97b73d. One Markdown path, +13/−5.
  • mdbook build course passed; cargo test -p type-exercise-checkpoint-03-supplied-tests --locked passed (12 tests); git diff --check passed.
  • Independent exact-head factual review #569: GO. Independent learner review #570: WALKABLE. Keep this PR Draft for Atlas's final acceptance.

AI-Assisted: GPT-6 Sol + Forge

@skyzh
skyzh marked this pull request as ready for review September 23, 2026 01:12
@skyzh
skyzh merged commit 3e14e64 into main Sep 23, 2026
1 check passed
@skyzh
skyzh deleted the forge/chapter3-validation-clarity branch September 23, 2026 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant