mirror of
https://github.com/luau-lang/rfcs.git
synced 2025-05-04 10:43:48 +01:00
Add motivation for static/dynamic requires
This commit is contained in:
parent
321c18cdda
commit
b22ace38a2
1 changed files with 1 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
- Cross-runtime/platform automated testing is currently impossible
|
||||
- Current dynamic requires are not type safe and can have cyclical dependency errors which are not picked up on. This isn't a conceptual limitation, it is totally possible to report.
|
||||
- Cross-module compilation may be wanted in the eventual future. But this pattern is common and will not be going away. There should be a way to express "requiring all children of a directory" while still having full cross-module compilation.
|
||||
- "Dynamic" requires are unfriendly to tooling & the language. But they're currently _needed_ for ergonomic reasons. We should close the gap, and let static requires (which are friendly to tooling!) be more expressive,
|
||||
|
||||
## Design
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue