Skip to content

Feature/support struct type element for other struct#40

Merged
wf001 merged 2 commits into
devfrom
feature/support-struct-type-element-for-other-struct
May 10, 2025
Merged

Feature/support struct type element for other struct#40
wf001 merged 2 commits into
devfrom
feature/support-struct-type-element-for-other-struct

Conversation

@wf001
Copy link
Copy Markdown
Owner

@wf001 wf001 commented May 10, 2025

What’s this PR?

support defining and using the struct type that have other struct type

(defschema Country {
                    :name :: string
                  })

(defschema Person {
                   :name :: string
                   :country :: Country})

(def main :: int
  (fn []
    (let [c :: Country {:name "deutsch"}
          person :: Person {:name "mike" :country c}]
      (prn (get (get person :country) :name))
      )))

What’s changed?

  • List key updates or fixes here.

Anything else?

Optional: anything reviewers should pay attention to.

@wf001 wf001 merged commit d1b6837 into dev May 10, 2025
1 check passed
@wf001 wf001 deleted the feature/support-struct-type-element-for-other-struct branch May 10, 2025 07:49
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.

1 participant