Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Structure referencing itself #2172

Closed
2 tasks
gaetbout opened this issue Feb 16, 2023 · 0 comments · Fixed by #2178
Closed
2 tasks

feat: Structure referencing itself #2172

gaetbout opened this issue Feb 16, 2023 · 0 comments · Fixed by #2178
Labels
enhancement New feature or request

Comments

@gaetbout
Copy link
Contributor

gaetbout commented Feb 16, 2023

Feature Request

Describe the Feature Request

It should be possible for a structure to reference itself:

struct Node {
    value: felt,
    left: Option::<Box::<Node>>,
    right: Option::<Box::<Node>>,
}

If the feature request is approved, would you be willing to submit a PR?
(Help can be provided if you need assistance submitting a PR)

I'd have no idea how to implement that feature.

  • Yes
  • No
@gaetbout gaetbout added the enhancement New feature or request label Feb 16, 2023
@spapinistarkware spapinistarkware linked a pull request Feb 18, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant