Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on TypeScript Is Surprisingly OK for Compilers. Parent comment
It really hasn't. In this very post he had to use a visitor to work around the fact that switch isn't an expression.
JavaScript's support for iterators is also weirdly shit. It has `.map()` but that only works on arrays. You can't map an iterator!
(new Set([0, 1, 2])).values().map(x => x + 1).toArray()
It really hasn't. In this very post he had to use a visitor to work around the fact that switch isn't an expression.
JavaScript's support for iterators is also weirdly shit. It has `.map()` but that only works on arrays. You can't map an iterator!