Replies: 2 comments 1 reply
-
This is actually the first time I'm really thinking about the possibility of removing nested modules. And I only now realize how much complicated module handling is only because of nested modules! See #123. This code pattern is repeated in so many places and I'd have to introduce it in the language server as well somehow in order to properly support modules. I'd say, considering how much immature is our current module/instances/imports support today, it would make more sense to remove nested modules and make things consistent without them, unless we are absolutely sure we want to support those. Now that I thought about how much work it is to maintain them, I don't think it is worth it. Note: If we decide to remove them, it will be crucial that we either support multiple module definitions on a single file (right now the parser only parses the first module it encounters and its sub-modules), or multiple files. Otherwise, people will be able to define only a single module. |
Beta Was this translation helpful? Give feedback.
-
After our weekly meeting, here's how we want to proceed:
I'll start removing support for nested modules immediately, and then work on the remaining module/import/instance issues. |
Beta Was this translation helpful? Give feedback.
-
As discussed in #483, the language manual gives the following example:
I would like to start a discussion on the need for nested modules. There are two immediate questions:
/cc @lasarojc, @shonfeder, @bugarela, @thpani, @Kukovec
Beta Was this translation helpful? Give feedback.
All reactions