Li Jin
Li Jin
> > local b = item\end 123 > > Still not clear why this is unsupported, and why it ever needs extra _call_0 variable. In this code, the compiler interprets...
@SkyyySi `local x = x` is not acceptable because the `x` in the right may also trigger a unintended global accessing. If you happen to alter a global environment with...
The `yue.require()` function was unintentionally swallowing errors, which is inconsistent with Lua's standard `require()` behavior. To align with Lua's conventions, I've decided to remove this shortcut API and instead provide...
The expression: ```moonscript x = select(2, try maybe_failing_operation!) ?? 'default' ``` won’t work as expected, because Lua’s `pcall` / `xpcall` return two values: `(true, result)` on success, or `(false, errorMessage)`...
Thanks for reporting this! Just to confirm, how were you using the `yue` CLI as an interpreter—was it via REPL mode, or using `yue -e` with inline code or filename?
Thanks for the suggestion! What you're proposing would essentially involve adding a runtime library for YueScript. However, I'm recently considering implementing a feature that would generate the runtime module separately,...
YueScript uses a PEG parser so that its compiler don't have a tokenization phase while parsing, maybe we can implement a standalone tokenizer for your purpose (maybe won't take time...
Thank you for your updates and improvements! However, while YueScript's current adoption of the monorepo management approach might introduce some additional complexity for maintainers, it also brings several advantages overall....
I had a little lib for property simulation and for speeding up inheritance member field accessing. https://github.com/IppClub/YueScript/blob/main/spec/inputs/props.yue Maybe this feature can be better left for users to implement, due to...
Tried partially implemented table matching to provide some of the pattern matching functions. You may take a look and give me some ideas about what are still missing. https://yuescript.org/doc/#table-matching