Skip to content

Add derives reference page and overview links Closes #34#35

Merged
binaek merged 3 commits into
v0.0.5from
34-add-derive-and-typed-lambda-reference-update-lambdas-and-collection-pages
Jun 9, 2026
Merged

Add derives reference page and overview links Closes #34#35
binaek merged 3 commits into
v0.0.5from
34-add-derive-and-typed-lambda-reference-update-lambdas-and-collection-pages

Conversation

@binaek

@binaek binaek commented May 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Rewrites the derives reference page to match runtime and index behavior from issue #88.
  • Removes incorrect guidance that TypeScript modules may be called from derive bodies.
  • Documents purity rules, policy scope, HOF callbacks, and export constraints.

What this PR does

  • Corrects derives.md so derive purity explicitly forbids TypeScript/use module calls.
  • Adds visibility rules for namespace vs policy-scoped derives and cross-policy FQN boundaries.
  • Documents single-parameter derive callbacks for collection builtins.
  • Cross-links lambdas and built-in functions pages to the derive callback section.

Changes By Area

Reference documentation

  • src/content/docs/reference/derives.md: Full rewrite — syntax, calling, scope, purity whitelist, callbacks, exports, examples, corrected See also links.
  • src/content/docs/reference/index.md: Lambdas section notes derive callbacks for HOF builtins.
  • src/content/docs/reference/built-in-functions.md: List builtins section notes derive-by-name callbacks.

Review Notes

  • Verify prose matches sentrie branch 88-add-derive-for-named-pure-expressions-using-typed-lambda-syntax behavior (no TS in derives, policy scope, export rules).
  • Confirm examples use valid Sentrie syntax and three-segment slash FQNs where shown.

Testing Notes

  • Docs-only change; preview site pages /reference/derives, /reference, and /reference/built-in-functions.

Dependency changes

  • None

@github-actions

github-actions Bot commented May 14, 2026

Copy link
Copy Markdown

🚀 Preview Deployment

A preview of this PR has been deployed to:

🔗 View Preview

This preview will be automatically removed when the PR is merged or closed.

🚀 Preview Deployment

✅ ** Preview removed (PR merged) **

The preview deployment for this PR has been automatically removed.

@binaek binaek changed the base branch from main to v0.0.5 June 9, 2026 03:01
@binaek binaek merged commit 6ef91d7 into v0.0.5 Jun 9, 2026
1 check passed
@binaek binaek deleted the 34-add-derive-and-typed-lambda-reference-update-lambdas-and-collection-pages branch June 9, 2026 03:02
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.

Add derive and typed lambda reference, update lambdas and collection pages

1 participant