[Syntax] Modules and imports (Recipes as Code) #9
Labels
No labels
bug
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gram-lang/gram#9
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Allowing the import of a Gram recipe inside another recipe is the missing link in the "Recipes as code" vision. It unlocks the creation of a packaged and versioned standard library (stocks, base doughs, mother sauces etc.).
Open Questions & Architecture Design
uses: { pastry: './bases/pate-feuilletee.gram' }and then used as&pastry{500 g}) or directly in the recipe body? Or both?Technical Challenges
The times, tools, and grocery lists of the imported module must aggregate correctly within the host recipe. This is a major undertaking that requires rethinking parts of the analyzer and compiler to handle module resolution.