-
Error message from pcall only include the first line that error happened but not the full stack traceback, but this can be done by compiling to using `xpcall` and pass `debug.traceback` as second arg:…
-
Because strings are iterable, TS supports destructuring them into individual characters:
`const [a, b] = "test"; // a = "t" ; b = "e"`;
We currently do not support that in TSTL.
We should think…
-
Does the current version work with nested generators?
I haven't done any test yet but by looking at the code I doubt it will work.
There is a simple "tagging technique" that I believe can support ne…
-
https://github.com/Microsoft/TypeScript/wiki/Architectural-Overview#trivia
-
I'm writing a small plugin for myself that will automatically insert runtime type checks for any function which I add a `@typecheck` annotation. It works by inserting calls to my own `expect` function…
-
Now that we have language extensions, we can move some of the more hacky annotations to language extensions instead.
Some of the annotations that can be moved:
- `@forRange`
- `@luaIterator`
-…
-
Yeah, I know, pretty specific, seemingly pretty unrelated.
I'd really love to give more details, but I'm not too sure how I would go about doing that.
Perhaps it causes further issues, but this …
-
To remove BOM currently all .trim() implementations include `\uFEFF` character in patterns. However, because Lua doesn't support Unicode, this character gets parsed as a series of UTF-8 bytes - `EF BB…
-
## Code
```ts
class A {
toString = () => {
return "A";
}
}
console.log(new A())
```
## Expected Output
```
A
```
## Current Output
```
table: 0x28
```
-
Say my project structure is like this:
```
tsconfig.json
programs/
program-1/
main.ts
something-else.ts
program-2/
main.ts
utils.ts
cool.ts
…