From 20e18ef836d27dbb9a1428127f97d908ffe411c3 Mon Sep 17 00:00:00 2001 From: "ajeffrey@roblox.com" Date: Mon, 28 Mar 2022 15:36:20 -0500 Subject: [PATCH] Restore incorrectly overwritten TEMPLATE.md --- rfcs/TEMPLATE.md | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/rfcs/TEMPLATE.md b/rfcs/TEMPLATE.md index 34b81b16..266922b2 100644 --- a/rfcs/TEMPLATE.md +++ b/rfcs/TEMPLATE.md @@ -1,24 +1,16 @@ -# Add primitive function and table types +# Feature name ## Summary -Add types for "real" functions and tables. +One paragraph explanation of the feature. ## Motivation -Some APIs require "real" functions and tables, not just things that -"look functiony" (e.g. tables with a `__call__` metamethod) or "look -tabley" (e.g. instances of classes). This RFC adds types for those. +Why are we doing this? What use cases does it support? What is the expected outcome? ## Design -Add: - -* 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). - - +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. ## Drawbacks