Skip to content

docs(language): document user-defined functions#55

Merged
scarmuega merged 1 commit into
mainfrom
feat/document-user-functions
May 31, 2026
Merged

docs(language): document user-defined functions#55
scarmuega merged 1 commit into
mainfrom
feat/document-user-functions

Conversation

@scarmuega

Copy link
Copy Markdown
Contributor

Adds a Functions guide page for the user-defined functions feature landing in tx3-lang/tx3#311.

Changes

  • New language/functions.md page: declaring fn, let-bindings in the body, calling, the relationship to the built-in functions, and the restrictions (top-level only, non-recursive, pure — no access to tx state).
  • Linked from index.mdx (under "What you compute") and from data.md's built-in functions section.
  • Dropped the now-removed bare tip_slot identifier form from data.md (the feature reframes builtins as call-only functions).
  • Renumbered the trailing sidebar pages (assets/txs/cardano/comments) to make room at order 6.

Pairs with the normative spec update in tx3-lang/tx3#311 (specs/v1beta0/).

🤖 Generated with Claude Code

Add a Functions guide page covering fn declarations, let-bindings,
calling, the relationship to the built-in functions, and restrictions.
Link it from the index and Data Expressions pages, and drop the removed
bare 'tip_slot' identifier form. Renumber the trailing pages.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@scarmuega scarmuega merged commit 31cc4d3 into main May 31, 2026
@scarmuega scarmuega deleted the feat/document-user-functions branch May 31, 2026 18:07
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