type pack drawback

This commit is contained in:
T 'Filtered' C 2022-12-17 01:16:28 +00:00 committed by GitHub
parent 0285afbd73
commit 16970abbfb
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,8 @@ SomethingWithAGenericTable(5) --not OK
This adds unusual syntax, as well as adding to the complexity of the language.
This also doesn't address how this should be approached around type packs.
## Alternatives
Do nothing, and use the `assert(type(T) == T)` syntax, though this creates extra bytecode.