Bruce Pascoe

Results 421 comments of Bruce Pascoe

Interestingly, 5.0 nightly catches the case where the comparer returns a literal `2` but not the `a - b` case. [Playground](https://www.typescriptlang.org/play?ts=5.0.0-dev.20230222#code/KYOwrgtgBAwg9hADgQwE4EsDOcRQN4BQUxUAMsJpgCoAWyuJAvFALQCMANESQKICOYZABsqcEsWYAGLuIDiqYMgAuwVLXpRmbAgF8CBJQE9EwWAhQLUAHioA+TVAAUyAFxQqHKACM3VAJSa9vBIaFg4ANz6ACbAAMZCaKYAZmAgsUroOFCx5ok2ts6+nj7unjkhlm7BFqr5fm5ecHBCiiCR+uU1jpxQbJL9ns7FAYxBuRjYIAB0-IIicH7tBAD0y+40FKaJUKmYyEnAAIQEnYndnn0DTsjDgVDIrN6LJ+PA57390te3o1AATM99EYTGYKqo-vkHIVSt5fCN7OwoAAfKCSZG9doxeLbFJpDJZU4KCF2aEeWEwwmqKqvVDE2z1bxNFr0dqUv7vS5fIZPO7VUKTGYCYSiQGrdZYKASgDmTSixzZHM+gxuPN+DxYT0iCp6nOVP3sAPCQA)

> That's probably OK since parameter properties aren't standard. I’d argue that it’s not OK because you’re potentially changing the initialization behavior of a bunch of unrelated properties just because...

:eyes: As someone who tried very hard to [replicate `tsc` behavior using the compiler API](https://github.com/fatcerberus/ts-sphere/blob/master/cell/ts-tool.js), I don’t envy anyone else who has to do it. `readDirectory` was particularly fun to...

In my case I didn’t care about perf - just that the same tsconfig produces exactly the same behavior and compiled output as the same tsconfig provided to tsc. For...

> perf test this bun yeah i'm sorry to tell you but your buns are performing poorly. they're probably overcooked so people hate them

> Though a part of me does really want to drop the quotes for primitives Then it becomes a garden path sentence: ``` Type string is not assignable to type...

> It's too breaky to be in the `--strict` family of options and not necessarily desired by everyone. Alright, that makes sense. That being said (and I realize this is...

@MartinJohns By distribution over unions I think he means that given the overloads... ```ts declare function foo(v: 1): void; declare function foo(v: 2): void; ``` ...it should be legal to...

The combinatorial behavior I’m talking isn’t about the return types, but how much work has to be done to typecheck the call sites. Basically if there are multiple arguments, each...