Skip to content

Update closure types example - #1311

Open
JordonPhillips wants to merge 2 commits into
mainfrom
JordonPhillips/blog-example
Open

Update closure types example#1311
JordonPhillips wants to merge 2 commits into
mainfrom
JordonPhillips/blog-example

Conversation

@JordonPhillips

Copy link
Copy Markdown
Contributor

What behavior changes?

Describe the observable difference in behavior before and after this change.

This updates the closure types example to show not only combined mode, but also types only and no types. Having every type in one example is useful to show how the same model may be used in multiple ways. This example will be referenced in a blog post announcing closure-based codegen, so keeping it all in one is particularly important.

Why is this change needed?

Explain the motivation: bug, feature request, refactor, performance, etc.

It showcases the feature more broadly. And conforms to what I want to discuss in a blog post discussing the feature.

How was this validated?

List tests added, benchmarks run, or manual verification performed.

There's tests. Even tests covering example code, to an extent.

What should reviewers focus on?

Point reviewers to the files or sections that contain the interesting logic.

Focus on the model and the readme.

Additional Links

Related issues, design docs, or prior art.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@JordonPhillips
JordonPhillips force-pushed the JordonPhillips/blog-example branch 3 times, most recently from fada18a to 8e05bb6 Compare August 10, 2026 13:22
Comment thread examples/closure-types/README.md
@JordonPhillips
JordonPhillips requested a review from joewyz August 12, 2026 13:34
This updates the closure types example to show not only combined
mode, but also types only and no types. Having every type in one
example is useful to show how the same model may be used in multiple
ways. This example will be referenced in a blog post announcing
closure-based codegen, so keeping it all in one is particularly
important.
@JordonPhillips
JordonPhillips force-pushed the JordonPhillips/blog-example branch from 8e05bb6 to bbbbe55 Compare August 12, 2026 13:35
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.

2 participants