From 8c5b73e022d79c55918dfb7745c0815ba9071b08 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Tue, 29 Mar 2022 13:10:42 -0700 Subject: [PATCH] More fixes --- rfcs/STATUS.md | 1 + rfcs/function-bit32-countlz-countrz.md | 4 ++-- rfcs/function-coroutine-close.md | 4 ++-- rfcs/syntax-type-ascription-bidi.md | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/rfcs/STATUS.md b/rfcs/STATUS.md index e3e227a0..61a3f14d 100644 --- a/rfcs/STATUS.md +++ b/rfcs/STATUS.md @@ -18,6 +18,7 @@ This document tracks unimplemented RFCs. ## Sealed/unsealed typing changes [RFC: Only strip optional properties from unsealed tables during subtyping](https://github.com/Roblox/luau/blob/master/rfcs/unsealed-table-subtyping-strips-optional-properties.md) +[RFC: Unsealed table assignment creates an optional property](https://github.com/Roblox/luau/blob/master/rfcs/unsealed-table-assign-optional-property.md) **Status**: Implemented but not fully rolled out yet. diff --git a/rfcs/function-bit32-countlz-countrz.md b/rfcs/function-bit32-countlz-countrz.md index d2439f72..b4ccb197 100644 --- a/rfcs/function-bit32-countlz-countrz.md +++ b/rfcs/function-bit32-countlz-countrz.md @@ -1,11 +1,11 @@ # bit32.countlz/countrz +**Status**: Implemented + ## Summary Add bit32.countlz (count left zeroes) and bit32.countrz (count right zeroes) to accelerate bit scanning -**Status**: Implemented - ## Motivation All CPUs have instructions to determine the position of first/last set bit in an integer. These instructions have a variety of uses, the popular ones being: diff --git a/rfcs/function-coroutine-close.md b/rfcs/function-coroutine-close.md index 6def1533..b9ffbf6f 100644 --- a/rfcs/function-coroutine-close.md +++ b/rfcs/function-coroutine-close.md @@ -1,11 +1,11 @@ # coroutine.close +**Status**: Implemented + ## Summary Add `coroutine.close` function from Lua 5.4 that takes a suspended coroutine and makes it "dead" (non-runnable). -**Status**: Implemented - ## Motivation When implementing various higher level objects on top of coroutines, such as promises, it can be useful to cancel the coroutine execution externally - when the caller is not diff --git a/rfcs/syntax-type-ascription-bidi.md b/rfcs/syntax-type-ascription-bidi.md index bf37eca2..0831aba5 100644 --- a/rfcs/syntax-type-ascription-bidi.md +++ b/rfcs/syntax-type-ascription-bidi.md @@ -1,11 +1,11 @@ # Relaxing type assertions +**Status**: Implemented + ## Summary The way `::` works today is really strange. The best solution we can come up with is to allow `::` to convert between any two related types. -**Status**: Implemented - ## Motivation Due to an accident of the implementation, the Luau `::` operator can only be used for downcasts and casts to `any`.