-
Notifications
You must be signed in to change notification settings - Fork 0
References
Benedict Albrecht edited this page May 20, 2026
·
4 revisions
References substitute reusable object patterns into other definitions. The referenced object's variables are merged into the parent — without creating a child relationship.
graph LR
FUNC["<b>function</b><br/><-{string, int}->"] -.->|"merges variables"| STR["<b>string</b><br/><<var>>"]
FUNC -.->|"merges variables"| INT["<b>int</b><br/><<var>>"]
style FUNC fill:#4a90d9,color:#fff
style STR fill:#e67e22,color:#fff
style INT fill:#e67e22,color:#fff
Key: Referenced objects do not appear as children. Only their variables are merged.
<-{ refA, refB ... }->
References cannot be empty.
Define reusable parameter types:
<:string:> string <<var>> <:>
<:int:> int <<var>> <:>
Use them as references in a function definition:
<:function:> function <<name>> ( <-{string, int}-> ) { <---> } <:>
The function can accept string or int parameters. The <<var>> variable from each referenced object is added to the function's variable set.
| Feature | Reference <-{}->
|
Sub-body <--->
|
|---|---|---|
| Creates children | ❌ | ✅ |
| Merges variables | ✅ | ❌ |
| Appears in tree | ❌ | ✅ |
Next: Or Statements — Matching one of several alternatives.
- Getting Started
- Sign-Up
- Home Screen
- Creating Your First Template
- Template Editor
- Application Navigation
- Syntax Overview
- Workflow: End-to-End
- Workflow: Test with simpleDemo
- Workflow: Build Template from angularTemp
- Demo Repositories
- Template
- Workbench
- GitHub Integration
- GitHub App Installation
- GitHub Repository Setup
- GitHub Re-linking
- Settings
- Overview
- Declarations
- Types
- Scoping