Initialize big object header properly#269
Merged
Merged
Conversation
Prevent uninitialized memory from causing an assertion failure.
nickrobinson251
approved these changes
Dec 9, 2025
github-actions Bot
pushed a commit
that referenced
this pull request
Apr 4, 2026
Introduces the `typegroup` syntax that allows multiple type definitions to reference each other cyclically, solving a limitation dating back to 2011 (issue #269). The fundamental construct uses a `typegroup` block: ```julia typegroup struct Node edges::Vector{Edge} end struct Edge from::Node to::Node end end ``` See the documentation for further examples. The fundamental semantics here are that all (mutable) struct definitions within the block have their names introduced at the top of the block and then get created as a unit (constructor definitions are deferred until all types are defined). There was significant discussion about the correct semantics for this (see JuliaLang#60569), but what we ended up with is that there is that before the types are created, the type names are `TypeVar`s and there's a special new `TypeApp` that represents lazy type application (which is not otherwise part of our Type algebra). Instantiation, everything then gets resolved together. Fixes #269 Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR Description
Prevent uninitialized memory from causing an assertion failure.
Checklist
Requirements for merging:
port-to-*labels that don't apply.