Commit graph

159 commits

Author SHA1 Message Date
Junseo Yoo
5da2e6e441 Revised typelib.function 2024-07-14 17:36:32 -07:00
Junseo Yoo
7a716e6c77 Added parameters to newfunction function 2024-07-14 16:35:59 -07:00
Junseo Yoo
1d1bcc947c Added parameters to newtable function 2024-07-14 15:54:20 -07:00
Junseo Yoo
f2685c315b Fixed rawget example 2024-07-03 14:47:48 -07:00
Junseo Yoo
3babf9bfab == operator overridden with __eq 2024-07-03 14:37:01 -07:00
Junseo Yoo
97439cfe5e typelib.nil clashes with the reserved keyword, so changed to typelib.niltype 2024-07-03 14:27:38 -07:00
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
Andy Friesen
f71a7c5578
Update README.md 2024-06-18 13:20:21 -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