Main public logs
Appearance
Combined display of all available logs of JOHNWICK. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 00:20, 22 November 2025 PC talk contribs created page Rust’s match in TypeScript: Exhaustiveness the Easy Way (Created page with "Something I learned while reading the Rust manual and quite liked, but felt missing in TypeScript, is the match keyword. It makes you cover every possible case before the code compiles. You can mirror that in TypeScript with a switch and one small helper, without any frameworks or decorators. <pre> type Fruit = 'apple' | 'banana' | 'orange'; function assertNever(x: never): never { throw new Error(`Unhandled case: ${x}`); } function getColor(fruit: Fruit): string...")