“If I'm understanding correctly, refinement types[1] solve this by allowing you to constrain a type into a smaller set of values. Think set notation: ``` type Temperature<min: number, max: number> = { x: number | x >= min && x <= max } ``` [1] - https://arxiv.org/pdf/2010.07763.pdf”
按年被提到
20202020 · 2 次2026
Refinement Types: A Tutorial
Ranjit Jhala, Niki Vazou · 2020
被提及 · 3 人首次 2020-10-16 · 最近 2024-01-04
3不同的人
2活跃月份
3讨论串
2被引(OpenAlex)
arXiv 摘要(候选层不写导读)
Refinement types enrich a language's type system with logical predicates that circumscribe the set of values described by the type, thereby providing software developers a tunable knob with which to inform the type system about what invariants and correctness properties should be checked on their code. In this article, we distill the ideas developed in the substantial literature on refinement types into a unified tutorial that explains the key ingredients of modern refinement type systems. In particular, we show how to implement a refinement type checker via a progression of languages that incrementally add features to the language or type system.
候选层:至少 2 个不同的人、在 2 个不同月份提到过,还没到主书架的 3 人 3 个月。没有做立场标注,所以只写“被提及”。
HN 书评
推荐在前,同类按时间 · 每篇最多保留 20 条,统计用全部提及评论potsandpans · 2024-01
被提交为 story · 2 次
- Refinement Types: A Tutorial ↗matt_d · 2020-10-16 · 1 分
- Refinement Types: A Tutorial ↗azhenley · 2020-10-16 · 3 分