Better HN
topnewbestaskshowjobs
Log inSign up

throwaway247322

2 karma · joined Aug 23, 2022 (4y ago) · 2 submissions

Submissions

comment 4y ago · link · parent

That would be cool to see, actually reminds me of the cdecl explain project [1].

[1] https://cdecl.org/

comment 4y ago · link · parent

> testing types

Right, this happens in any language where you are writing type lambdas or functions at type level, which makes sense actually. We've been doing this in C++ as well for years...

On another note, Redux is fundamentally a bad experience in typescript because the action type must extend from `AnyAction`, so it poisons the well.

What we need is a first-class typescript state container with a rigid API, even better would be first-class enums and pattern matching...

Writing generators isn't fun in typescript, so yes I imagine redux-saga would be painful.