mirror of
https://github.com/luau-lang/luau.git
synced 2025-05-04 10:33:46 +01:00
Restore incorrectly overwritten TEMPLATE.md
This commit is contained in:
parent
9dd67c597a
commit
20e18ef836
1 changed files with 4 additions and 12 deletions
|
@ -1,24 +1,16 @@
|
||||||
# Add primitive function and table types
|
# Feature name
|
||||||
|
|
||||||
## Summary
|
## Summary
|
||||||
|
|
||||||
Add types for "real" functions and tables.
|
One paragraph explanation of the feature.
|
||||||
|
|
||||||
## Motivation
|
## Motivation
|
||||||
|
|
||||||
Some APIs require "real" functions and tables, not just things that
|
Why are we doing this? What use cases does it support? What is the expected outcome?
|
||||||
"look functiony" (e.g. tables with a `__call__` metamethod) or "look
|
|
||||||
tabley" (e.g. instances of classes). This RFC adds types for those.
|
|
||||||
|
|
||||||
## Design
|
## Design
|
||||||
|
|
||||||
Add:
|
This is the bulk of the proposal. Explain the design in enough detail for somebody familiar with the language to understand, and include examples of how the feature is used.
|
||||||
|
|
||||||
* a type `table`, inhabited by Luau tables (but not class instances), and
|
|
||||||
* a type `function`, inhabited by Luau functions (but not class methods or
|
|
||||||
tables with metamethods).
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Drawbacks
|
## Drawbacks
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue