-
Hello, I am exploring how to define a nested structure, which, at a certain point, has an element that is a copy of the object itself (except the said element), let me put that in code:
but of course, just calling
incurs (rightly so) into an infinite recursion. |
Beta Was this translation helpful? Give feedback.
Answered by
HT154
Nov 5, 2024
Replies: 1 comment 7 replies
-
A few clarifying questions:
|
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@holzensp's advice here is spot on!
Filesystem modeling is tough in Pkl in my experience because of the lack of recursive typealiases. Here's how you can go about it (today, and with currently-not-possible ideal solution in comments):