haskell / haskell/binary

Document safety expectations, or the lack thereof

未关闭
#205 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Haskell
星标
120
派生
70
PR 合并指标
30 天内没有已合并 PR

描述

I noticed that the instances for `Map`, `Set`, `IntMap`, and `IntSet` are "unsafe" in the sense that they will happily build structures that don't obey the expected invariants if they are presented with improperly ordered input. Is this acceptable behavior (i.e., is `get` only supposed to be used with trusted input)? Or should the invocations of `fromDistinctAscList` be replaced with `fromList`?

贡献指南

这个仓库没有索引到贡献指南

调研方向

审查 Map、Set、IntMap 和 IntSet 实例,以及 issue 中提到的 fromDistinctAscList 调用。确定 get 是否用于受信任的输入,并记录安全性预期;或者,如果应替换这些构造函数,则确定所需的行为;完成工作需要项目作出明确决定。

由索引模型根据 Issue 内容生成。

评估

技术栈
haskell
领域
documentation
Issue 类型
文档
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
30/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。