From d40107dc60e423d945e70c07a5b947e0d263c9b3 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Mon, 17 May 2021 18:19:49 -0700 Subject: [PATCH] Add RFC status fields (#39) It seems more consistent and unambiguous if we mark RFCs as being implemented when the implementation lands instead of expecting to cross-reference documentation. That also makes it easier for us to flag stale RFCs. --- rfcs/README.md | 2 +- rfcs/behavior-eq-metamethod.md | 2 ++ rfcs/change-global-version.md | 2 ++ rfcs/function-debug-info.md | 2 ++ rfcs/function-string-pack-unpack.md | 2 ++ rfcs/function-table-clear.md | 2 ++ rfcs/function-table-create-find.md | 2 ++ rfcs/syntax-array-like-table-types.md | 2 ++ rfcs/syntax-compound-assignment.md | 2 ++ rfcs/syntax-continue-statement.md | 2 ++ rfcs/syntax-number-literals.md | 2 ++ rfcs/syntax-type-ascription.md | 2 ++ rfcs/syntax-typed-variadics.md | 2 ++ 13 files changed, 25 insertions(+), 1 deletion(-) diff --git a/rfcs/README.md b/rfcs/README.md index 02f83f5..4ebaeaf 100644 --- a/rfcs/README.md +++ b/rfcs/README.md @@ -52,4 +52,4 @@ When an RFC gets merged, the feature *can* be implemented; however, there's no s To avoid having permanently stale RFCs, in rare cases Luau team can *remove* a previously merged RFC when the landscape is believed to change enough for a feature like this to warrant further discussion. -To track progress of implemented features, it's advised to follow documentation instead; while RFCs aren't meant to be user-facing documentation, recaps in particular can reference RFCs for additional context behind the changes. +When an RFC is implemented and the implementation is enabled via feature flags, RFC should be updated to include "**Status**: Implemented" at the top level (before *Summary* section). diff --git a/rfcs/behavior-eq-metamethod.md b/rfcs/behavior-eq-metamethod.md index f1d01fb..eeb768f 100644 --- a/rfcs/behavior-eq-metamethod.md +++ b/rfcs/behavior-eq-metamethod.md @@ -2,6 +2,8 @@ > Note: this RFC was adapted from an internal proposal that predates RFC process +**Status**: Implemented + ## Summary `__eq` metamethod will always be called during `==`/`~=` comparison, even for objects that are rawequal. diff --git a/rfcs/change-global-version.md b/rfcs/change-global-version.md index cdcc2ea..cdb6c1e 100644 --- a/rfcs/change-global-version.md +++ b/rfcs/change-global-version.md @@ -2,6 +2,8 @@ > Note: this RFC was adapted from an internal proposal that predates RFC process +**Status**: Implemented + ## Summary Change \_VERSION global to "Luau" to differentiate Luau from Lua diff --git a/rfcs/function-debug-info.md b/rfcs/function-debug-info.md index 3c5a055..1362dc9 100644 --- a/rfcs/function-debug-info.md +++ b/rfcs/function-debug-info.md @@ -2,6 +2,8 @@ > Note: this RFC was adapted from an internal proposal that predates RFC process +**Status**: Implemented + ## Summary Add `debug.info` as programmatic debug info access API, similarly to Lua's `debug.getinfo` diff --git a/rfcs/function-string-pack-unpack.md b/rfcs/function-string-pack-unpack.md index f0317b5..5315f4c 100644 --- a/rfcs/function-string-pack-unpack.md +++ b/rfcs/function-string-pack-unpack.md @@ -2,6 +2,8 @@ > Note: this RFC was adapted from an internal proposal that predates RFC process +**Status**: Implemented + ## Summary Add string pack/unpack from Lua 5.3 for binary interop, with small tweaks to format specification to make format strings portable. diff --git a/rfcs/function-table-clear.md b/rfcs/function-table-clear.md index 5100b04..9227992 100644 --- a/rfcs/function-table-clear.md +++ b/rfcs/function-table-clear.md @@ -2,6 +2,8 @@ > Note: this RFC was adapted from an internal proposal that predates RFC process and as such doesn't follow the template precisely +**Status**: Implemented + ## Summary Add `table.clear` function that removes all elements from the table but keeps internal capacity allocated. diff --git a/rfcs/function-table-create-find.md b/rfcs/function-table-create-find.md index fe666ed..671e16a 100644 --- a/rfcs/function-table-create-find.md +++ b/rfcs/function-table-create-find.md @@ -2,6 +2,8 @@ > Note: this RFC was adapted from an internal proposal that predates RFC process and as such doesn't follow the template precisely +**Status**: Implemented + ## Design This proposal suggests adding two new builtin table functions: diff --git a/rfcs/syntax-array-like-table-types.md b/rfcs/syntax-array-like-table-types.md index 3ac9c9a..486f7de 100644 --- a/rfcs/syntax-array-like-table-types.md +++ b/rfcs/syntax-array-like-table-types.md @@ -2,6 +2,8 @@ > Note: this RFC was adapted from an internal proposal that predates RFC process +**Status**: Implemented + ## Summary Add special syntax for array-like table types, `{ T }` diff --git a/rfcs/syntax-compound-assignment.md b/rfcs/syntax-compound-assignment.md index 1860636..6ab97f6 100644 --- a/rfcs/syntax-compound-assignment.md +++ b/rfcs/syntax-compound-assignment.md @@ -2,6 +2,8 @@ > Note: this RFC was adapted from an internal proposal that predates RFC process and as such doesn't follow the template precisely +**Status**: Implemented + ## Design A feature present in many many programming languages is assignment operators that perform operations on the left hand side, for example diff --git a/rfcs/syntax-continue-statement.md b/rfcs/syntax-continue-statement.md index 96e1d1b..4adde09 100644 --- a/rfcs/syntax-continue-statement.md +++ b/rfcs/syntax-continue-statement.md @@ -2,6 +2,8 @@ > Note: this RFC was adapted from an internal proposal that predates RFC process +**Status**: Implemented + ## Summary Add `continue` statement to `for`, `while` and `repeat` loops using a context-sensitive keyword to preserve compatibility. diff --git a/rfcs/syntax-number-literals.md b/rfcs/syntax-number-literals.md index 76b0d48..2ad6a6f 100644 --- a/rfcs/syntax-number-literals.md +++ b/rfcs/syntax-number-literals.md @@ -2,6 +2,8 @@ > Note: this RFC was adapted from an internal proposal that predates RFC process and as such doesn't follow the template precisely +**Status**: Implemented + ## Design This proposal suggests extending Lua number syntax with: diff --git a/rfcs/syntax-type-ascription.md b/rfcs/syntax-type-ascription.md index 66ffb66..e48b723 100644 --- a/rfcs/syntax-type-ascription.md +++ b/rfcs/syntax-type-ascription.md @@ -2,6 +2,8 @@ > Note: this RFC was adapted from an internal proposal that predates RFC process +**Status**: Implemented + ## Summary Implement syntax for type ascriptions using `::` diff --git a/rfcs/syntax-typed-variadics.md b/rfcs/syntax-typed-variadics.md index adba74c..2988787 100644 --- a/rfcs/syntax-typed-variadics.md +++ b/rfcs/syntax-typed-variadics.md @@ -2,6 +2,8 @@ > Note: this RFC was adapted from an internal proposal that predates RFC process +**Status**: Implemented + ## Summary Add syntax for ascribing a type to variadic pack (`...`).