luau
luau copied to clipboard
A fast, small, safe, gradually typed embeddable scripting language derived from Lua
# Problem Consider this: ``` type X = { a: number } type Y = { b: number } type Z = { c: number } type M = {...
Right now there's a gap in the syntax for declaration files with the lack of support for generic type packs.  One way it can be resolved is using the...
In the readme file under the building section, it specifies that you should run the command `mkdir cmake && cd cmake`; however, the folder is not currently being ignored.
I'm not sure about terminology or what exactly is causing this, but there are some edge cases around intersections and/or unions that cause autocomplete to break. Below is a minimal...
My testing code that I put inside ``Autocomplete.test.cpp`` ```cpp TEST_CASE_FIXTURE(ACBuiltinsFixture, "idk2") { // Change this to "false" to compare it to the old version ScopedFastFlag sff[]{ {FFlag::DebugLuauDeferredConstraintResolution, true}, }; auto...
```lua --!strict local weaks = setmetatable({} :: { number }, { __mode = "v" }) table.insert(weaks, 5) ``` 
Let's say that we have the following code: ``` 1| if condition then 2| ... 3| end 4| 5| local var = 1 ``` Calling a lua_breakpoint on line 3...
Hello, friends in luau community, Will luau provide portable prebuilt. We are developing x-cmd and want to add luau into our pkg. Take bun as an example: https://www.x-cmd.com/pkg/bun We can...
When using ```value = value or ``` syntax with optional types, the optional should be refined to a non-optional type as it is now known not to be nil. Example:...
# Background Hey all! I'm working on a small side project and one of the things I'd like to do involves porting some Lua code over to Luau. The current...