Rich Hickey:也许并不
关于这个视频
Rich Hickey 的 Clojure/Conj 2018 主题演讲认为,Maybe/Option 类型和严格类型签名对于对随时间变化的数据进行建模是一种糟糕的方法。他围绕可选性、模式增长和兼容性构建了案例,并提出了 Clojure 规范背后的想法作为替代方案。
HN 为什么推荐它:每当出现 null、Maybe/Option 或静态类型时,HN 评论者都会将人们发送到它,作为对类型系统正统观念的深思熟虑的异议,这种正统观念改变了一些人对数据建模的方式。
“Rich Hickey 的“也许不是”应该被任何认为 null/nils/undefined 没问题的人观看。”— HN 评论 · 2018 · 原文
查看英文原文
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.
Why HN likes it: 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.
“Rich Hickey's "Maybe Not" should be watched by anyone who thinks nulls/nils/undefineds are okay.”
原视频频道:ClojureTV · YouTube 18.1 万次观看













