Commit graph

150 commits

Author SHA1 Message Date
Junseo Yoo
3a77768fae merge addprop() and delprop() into one 2024-07-03 13:30:24 -07:00
Junseo Yoo
aa5057a50b addprop(key, ty.nil) != delprop(key) 2024-07-03 11:22:14 -07:00
Junseo Yoo
361968f1a8 added tbl:getprop(key) to obtain a single value 2024-07-03 10:01:51 -07:00
Junseo Yoo
406ea952e4 Removed overloading metamethods for now 2024-07-03 09:57:28 -07:00
Junseo Yoo
fd981bd74e make nil, unknown, never, any an instance attribute of typelib; merge getindextype/getindexresulttype into one function 2024-07-02 19:28:51 -07:00
Junseo Yoo
e0f352a665 small fix to reflect table method name change to class method names 2024-07-02 14:16:06 -07:00
Junseo Yoo
a6ee5eddad renaming methods, overloading __eq __le __newindex, metatable as representation of tables 2024-07-02 14:10:58 -07:00
Junseo Yoo
efa815b920 revising typelib library and method descriptions 2024-07-02 11:13:52 -07:00
Junseo Yoo
b87e39c578 added globals/libraries to a list of illegal constructs 2024-07-02 10:03:56 -07:00
Junseo Yoo
60ef9d3f6c using colons instead of periods to invoke method calls 2024-07-01 12:09:14 -07:00
Junseo Yoo
db7a65b0da Added indexer methods for Class types 2024-07-01 12:03:43 -07:00
Junseo Yoo
1ad250d1c4 comment: ~ to not 2024-07-01 11:50:16 -07:00
Junseo Yoo
96611f14cb colon to invoke methods 2024-07-01 11:48:31 -07:00
Junseo Yoo
0cc4a86dca big revision on library methods, reason for using userdata, illegal constructs in type functions; need to add support for generic types and list of supported libraries/globals 2024-07-01 11:44:38 -07:00
Junseo Yoo
689d466090 Starlark approach without execution limit 2024-06-28 18:29:07 -07:00
Junseo Yoo
e58213f629 fix typos in method names 2024-06-27 15:27:20 -07:00
Junseo Yoo
2906909bb2 removed getname() as there aren't real usecases 2024-06-27 11:45:44 -07:00
Junseo Yoo
01752a2063 print to warn; error/return nothing to fail reduction 2024-06-27 10:43:09 -07:00
Junseo Yoo
16759e3527 lType -> typelib 2024-06-27 10:22:12 -07:00
Junseo Yoo
b0451ea9e7 Type functions can not refer to outer scopes 2024-06-27 10:20:54 -07:00
Junseo Yoo
39f80fbc6a user configurable timeout added 2024-06-26 09:54:38 -07:00
Junseo Yoo
e1005b27a6 type functions can call other type functions but not regular functions 2024-06-26 09:12:46 -07:00
Junseo Yoo
8a7903f906 Added a section about type function type checking as one of future works 2024-06-26 08:44:28 -07:00
Junseo Yoo
5320557a0e getname() should return string not table 2024-06-24 16:38:39 -07:00
Junseo Yoo
421be7551b addressing comment: boolean is equivalent to true | false 2024-06-24 16:24:36 -07:00
Junseo Yoo
cde3866893 table runtime representation still depends on VM 2024-06-24 16:14:29 -07:00
Junseo Yoo
4231d1dcb5 library names to luacase 2024-06-24 15:16:15 -07:00
Junseo Yoo
4079470d35 Initial commit for UDTF 2024-06-24 13:34:03 -07:00
Junseo Yoo
766134c2d5
Renamed all instances of type operators to type functions (#43)
* Renamed all instances of type operators to type functions

* Update docs/index-type-operator.md

Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>

---------

Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>
2024-06-20 12:52:09 -07:00
Junseo Yoo
d473220d97
RFC: rawget Type Operator (#39)
* Initial commit for rawget

* rfc for rawget type operator completed

* Forgot .md

* Code blocks '''lua -> '''luau

* grammar fixes

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>

* Revised motivation section and design section

* Revised the drawbacks section

* Added a note about how this type operator doesn't work with class types

* Rephrased the summary

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>

* Redirect users to open-source Luau global functions

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>

* reword "runtime pair" to counterpart and update the link

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>

* grammar fix: "interactions" -> "interaction"

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>

* Revised wording for motivation section

Co-authored-by: aaron <aweiss@hey.com>

* Added an article and broke up a sentence into two

Co-authored-by: aaron <aweiss@hey.com>

* Revided the reasoning for second drawback

* Update docs/rawget-type-operator.md

Co-authored-by: aaron <aweiss@hey.com>

---------

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
Co-authored-by: aaron <aweiss@hey.com>
2024-06-20 10:30:09 -07:00
menarulalam
70871e7516
Update new-require-by-string-semantics.md (#22)
Added init.luau part because it was missing. (Also reformatted it a bit).
2024-06-18 09:18:16 -07:00
Andy Friesen
7ad9975637 Unaccept syntax-key-destructuring.md 2024-06-14 14:15:26 -07:00
Junseo Yoo
c0f8ae51d9
RFC: index Type Operator (#38) 2024-06-10 18:22:56 -04:00
Aviral Goel
75d55ca4de
RFC: Native Attribute for Functions (#31)
* RFC for native attribute

* Use "comment directive" terminology instead of "hotcomment"

* Improve motivation and fix markdownlint errors.

* `@native` does not apply recursively

* Remove warning section
2024-06-10 09:30:19 -07:00
Alexander McCord
364425c518
Update codeblocks' language to use luau. (#40) 2024-06-10 08:15:36 -07:00
aaron
6002a16fc3
RFC: An official mascot for Luau (#37)
* mascot rfc

* typo

Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>

---------

Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>
2024-06-04 10:41:11 -07:00
Aviral Goel
21d3413d47
RFC: Function Attribute Parameters (#30)
* RFC for attribute parameters

* Use a relative path to generalize for GitHub and the RFC site.

* Add reason for allowing `nil` parameter

* Handle forward compatibility and clarify parsing behavior.

* Slight rewording

* Add discussion for handling `@checked`

* Update description for new syntax.

* Improve presentation, fix ebnf syntax, and address comments.

* Propose function-call syntax for attributes
2024-05-30 12:19:18 -07:00
boyned//Kampfkarren
7e35ba35a0
Key destructuring (local {.a, .b} = t) (#24)
* Key destructuring RFC

* Feedback + 'as'

* Mention evaluation amount

* Fix type

* Spell check

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>

---------

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
2024-05-20 20:00:51 -07:00
Alexander McCord
1ca8399b0d
Update attributes for functions RFC with more reasons against comments (#33)
Why not use comments? This is why.
2024-05-08 15:48:07 -07:00
Micah
d495078767
Attributes for functions (#10)
* Add intial draft of RFC

* Correct typo

* Update syntax-attributes-functions.md

---------

Co-authored-by: vegorov-rbx <75688451+vegorov-rbx@users.noreply.github.com>
2024-04-11 10:56:04 -07:00
Alexander McCord
e471d1f79d
Improved type checking rules of cast operator (#27) 2024-03-18 20:30:36 -07:00
Alexander McCord
2b28353611
Allow leading | and & in types (#25)
* Propose.

* Little grammar error.

* Semi-colons and language standardized indentations.

* n) -> n.
2024-03-11 11:06:25 -07:00
Alan Jeffrey
85b4d9a9d9
Add RFC for shared self (#5) 2024-01-23 09:47:08 -08:00
aaron
28e9cb8a70
RFC: keyof and rawkeyof type operators (#16) 2024-01-16 10:54:06 -08:00
Andy Friesen
8eea6768b4
RFC: Syntax for read- and write- access to properties (#15)
* RFC for property access modifier syntax.

Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>
2024-01-12 16:03:21 -08:00
vegorov-rbx
4d5453ce33
Status update on bit32.byteswap and buffer (#17) 2023-12-15 13:50:54 -08:00
menarulalam
2fa1e811e1
Updates to require by string RFCs (#14)
* Updated rfcs

* Removed @ requirement

* Updated alias

* Added a space

* Undid @ for paths
2023-12-12 13:56:02 -05:00
menarulalam
c6d0c6adb3
RFC: Require by string with aliases (#7)
* Create require-by-string-aliases.md

* Update require-by-string-aliases.md

* Update require-by-string-aliases.md

* Changed aliases to be case-insensitive + restricted the charset

* Update docs/require-by-string-aliases.md

Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>

* Update require-by-string-aliases.md to have @

* Include justification for alias name case insensitivity

* Fixed typo

* Removed duplicate section

---------

Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>
2023-11-30 14:02:44 -05:00
menarulalam
adda97e3a1
RFC: New Require By String Semantics (#6)
* Create require-by-string-relative-paths.md

* Update docs/require-by-string-relative-paths.md

Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>

* Enforced relative path formatting

* Rename require-by-string-relative-paths.md to new-require-by-string-semantics.md

* Update new-require-by-string-semantics.md

* Update docs/new-require-by-string-semantics.md

---------

Co-authored-by: Alexander McCord <11488393+alexmccord@users.noreply.github.com>
2023-11-16 14:08:51 -08:00
Arseny Kapoulkine
99bbc8636e
Update behavior-stricter-utf8-library.md
Mark as implemented
2023-11-16 13:32:01 -08:00