# Runtime types (and many other functional ideas)

**URL:** <https://es.discourse.group/t/runtime-types-and-many-other-functional-ideas/1043>\
**Category:** 💡 Ideas\
**Created:** [October 20, 2021, 1:57am UTC](https://es.discourse.group/t/runtime-types-and-many-other-functional-ideas/1043 "2021-10-20T01:57:28Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![theScottyJam](https://yyz2.discourse-cdn.com/free1/user_avatar/es.discourse.group/thescottyjam/32/616_2.png) [@theScottyJam](https://es.discourse.group/u/theScottyJam)\
**Post date:** [October 20, 2021, 6:01am UTC](https://es.discourse.group/t/runtime-types-and-many-other-functional-ideas/1043/9 "2021-10-20T06:01:37Z")

</div>

Ah, yes, that's pretty close to what I would want from structs.

I guess the idea of struct itself doesn't necessarily need to have a simplified type system to work, a type system would just improve it. But, simply declaring the required fields, like what's done in that issue would certainly take us a long ways there.

Something similar could be said for the variant idea I shared, as that idea is mostly a collection of interconnected structs. It's certainly improved if there was a type-checking syntax, but it could stand alone without it, especially if we still automatically created a Symbol.matcher for the variant and its values.

In general, I think a lot of those ideas are able to stand by themselves to a degree, but definitely work better when designed together.

---

_[View the full topic](https://es.discourse.group/t/runtime-types-and-many-other-functional-ideas/1043)._
