HN 精选

Maybe Not - Rich Hickey

ClojureTV
14 人推荐 · 跨 11 个月 · 2018–2025
编程语言设计函数式编程
Maybe Not - Rich Hickey

中文导读

Rich Hickey 在 Clojure/Conj 2018 上的重磅 Keynote。他直指 Maybe/Option 类型与僵化的类型签名根本无法优雅建模随时间演化流动的数据,围绕可选性、Schema 演进与兼容性展开论证,并提出了 Clojure spec 背后的全新解法。

为什么 HN 推它

凡是社区热议 null、Maybe/Option 或静态类型系统时必被甩出来的反思神作,以极其深刻的视角挑战了类型系统的正统教条,彻底刷新了许多人的数据建模思维。

「任何觉得 null、nil 或 undefined 没问题的人,都该看看 Rich Hickey 的这篇《Maybe Not》。」HN 网友原话:Rich Hickey's "Maybe Not" should be watched by anyone who thinks nulls/nils/undefineds are okay.
英文原摘要(HackerTube / Claude 整理)

Rich Hickey's Clojure/Conj 2018 keynote argues that Maybe/Option types and rigid type signatures are a poor way to model data that changes over time. He builds the case around optionality, schema growth and compatibility, and presents the ideas behind Clojure spec as an alternative.

HN commenters send people to it whenever nulls, Maybe/Option or static typing come up, as a thoughtful dissent from the type-system orthodoxy that changes how some people model data.

HN 上的提及

strong_rec slifin · 2018-11 · HN 原文
rich hickey just changed how I think about domain modelling forever with this talk
rec jpittis · 2018-12 · HN 原文
Any other must watches?
reference sharpercoder · 2018-12 · HN 原文
Yet `Maybe<T> | Option<T> | ...` is not an option (pun intended), as Rich Hickey explains here
rec draw_down · 2018-12 · HN 原文
I recommend Rich Hickey's talk from about a week ago, called "Maybe Not
strong_rec gambler · 2018-12 · HN 原文
Rich Hickey's "Maybe Not" should be watched by anyone who thinks nulls/nils/undefineds are okay.

相关视频