Skip to content

README: unwrap! guidance and ActiveRecordOptional scope - #37

Merged
nz merged 1 commit into
mainfrom
docs/readme-gaps
Aug 7, 2026
Merged

README: unwrap! guidance and ActiveRecordOptional scope#37
nz merged 1 commit into
mainfrom
docs/readme-gaps

Conversation

@nz

@nz nz commented Aug 7, 2026

Copy link
Copy Markdown
Member

Closes #26.

Most of the issue predates the README refresh that landed in #15: the scaffold TODOs are gone, and Option, Result, pattern matching, pedantic checks, and the Rails integrations are documented. The departures-from-Rust ask is covered by the presence paragraph (#27), the equality paragraph (#35), and the named ActiveRecord compromise set (#36).

This PR adds the two asks still missing:

  • An explicit statement that unwrap!/expect! are for tests and consoles, not application code, with the reasoning (they reintroduce the ambiguous failure the type exists to prevent). The same guidance ships in Teach the combinators from method_missing #33's error message.
  • The all-or-nothing nature of ActiveRecordOptional: every nullable column and optional: true association is wrapped, no per-attribute opt-in.

Two guidance gaps: nothing said unwrap!/expect! belong in tests
rather than application code, and nothing said including
ActiveRecordOptional wraps every nullable column and optional
association with no per-attribute opt-in.

Closes #26.
@nz
nz enabled auto-merge August 7, 2026 18:34
@nz
nz merged commit 000091c into main Aug 7, 2026
1 check passed
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.

README documents a different API — no docs for Option, Result or ActiveRecordOptional

2 participants