Show HN: FOSS Bombermaaan now playable in the browser with 5 players on keyboard
2 by midzer | 1 comments on Hacker News.
Tuesday, 7 March 2023
New Show Hacker News story: latest news
Show HN: YoBulk AI – Open Source React SDK for data cleansing
10 by yochin | 4 comments on Hacker News.
10 by yochin | 4 comments on Hacker News.
New Show Hacker News story: latest news
Show HN: FlightList Android App – Find cheap one way flights to any destination
2 by ismaelyws | 0 comments on Hacker News.
2 by ismaelyws | 0 comments on Hacker News.
New Show Hacker News story: latest news
Show HN: I've curated thousands of UI elements from the best B2B SaaS apps
2 by bertwitt | 0 comments on Hacker News.
2 by bertwitt | 0 comments on Hacker News.
New Show Hacker News story: latest news
Show HN: Regex Derivatives (Brzozowski Derivatives)
3 by c0nstantine | 0 comments on Hacker News.
A Python sketch of a regex engine in less than 150 lines of code
3 by c0nstantine | 0 comments on Hacker News.
A Python sketch of a regex engine in less than 150 lines of code
Monday, 6 March 2023
New Show Hacker News story: latest news
Show HN: Tagged Unions and Factories in TypeScript
2 by nightlyherb | 0 comments on Hacker News.
Wish sum types got more love in TypeScript. I have settled on this style to minimize the boilerplate code needed to write tagged unions and tagged union factories. Lines 1-8 are helper functions for declaring tagged union types. They are used for non-generic tagged unions. Non-generic tagged unions' types should be inferred correctly. Generic tagged unions are super hard to type, as TypeScript only allows functions to be typed as generic values. Wish you enjoy this as well.
2 by nightlyherb | 0 comments on Hacker News.
Wish sum types got more love in TypeScript. I have settled on this style to minimize the boilerplate code needed to write tagged unions and tagged union factories. Lines 1-8 are helper functions for declaring tagged union types. They are used for non-generic tagged unions. Non-generic tagged unions' types should be inferred correctly. Generic tagged unions are super hard to type, as TypeScript only allows functions to be typed as generic values. Wish you enjoy this as well.
Subscribe to:
Posts (Atom)