TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Immutable and type-checked state and actions for Redux

20 点作者 gcanti超过 9 年前

2 条评论

skrebbel超过 9 年前
I really like this. I&#x27;ve been following gcanti&#x27;s work in tcomb for a while now, and I feel that it&#x27;s way too unpopular for how well designed it is. I think I should just replace all my Immutable.js records with tcomb structs, and time is the only reason I haven&#x27;t.<p>Does anyone know whether there&#x27;s any immutable collections that work well with tcomb? I&#x27;m a bit weary of adding yet another data structure thing to my code (after Immutable and Ramda), so I&#x27;d prefer to <i>replace</i> Immutable by tcomb but I&#x27;m afraid that&#x27;ll make add-to-immutable-sequence kind of operations significantly slower. Any tips?
drmajormccheese超过 9 年前
Type checked state is known as &quot;typestate&quot;. A Google search will bring up the typestate paper.