Hacker News new | past | comments | ask | show | jobs | submit login

This looks really neat, I played with it a bit and the DSL is well thought out.

One thing I can't figure though: how do we set default values for internal Struct?

Said default values are mentionned in the documentation (here: <https://slint.dev/releases/1.0.2/docs/slint/src/reference/ty...>).

  // ok even if a is missing, it will just have the default value



Currently the default is just whatever empty value for that type (so 0 or "")

But since this is something that was asked before, I created an issue: https://github.com/slint-ui/slint/issues/2936


Neat!




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: