Geoffrey Booth

Results 425 comments of Geoffrey Booth

> * In testing, I found one reason we might want a `.tcoffee` or `.tcs` extension: `tsc` really wants the filename to be `.ts`, refusing to allow types in a...

> This seems like one argument in favor of outputting TypeScript instead of JSDoc Outputting TypeScript is also likely far less work, and includes more information than JSDoc. There are...

> such a core part of the value of Typescript in practice is the in-editor tooling đź’Ż > in theory you could just describe the transformation from typed Coffeescript to...

The particular symbol can change at any time before we ship this, so I don’t find it terribly useful to bikeshed the various options (`~`, `as`, `:=`, etc.). Just know...

Fortunately for the possibility of adding TypeScript support without incurring breaking changes, there is a secret stash of reserved keywords, some of which CoffeeScript has never used: https://github.com/jashkenas/coffeescript/blob/f9c3316aa5fed06ee539edcf31b82b9394ac4765/src/lexer.coffee#L1255-L1262 Notable in...

> For now, I’m focusing on adding all of TypeScript’s features with mostly TypeScript syntax, except for type annotation which is `~` or `:=` instead of `:` (though `:` could...

> Are small breaking changes really impossible, though? Would you consider increasing the major version to 3? I don’t think a major version bump is practical at the moment. There...

> Do you think that it could make sense to introduce codemod supported small breaking changes I’m strongly averse to breaking changes for the purpose of adding a new feature....

So is this basically the inverse of `for…from`? https://coffeescript.org/#generator-iteration. That iterates over generators, whereas this _creates_ a generator? In other words, [this package](https://github.com/ericelliott/arraygen) but built into the language? So this...

Same note as https://github.com/jashkenas/coffeescript/issues/5415#issuecomment-1109194355. Comments are stowaways on the nearest “real” token, and because of the rewriter `{` tokens are sometimes not part of the normal stream (since they’re often...