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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Runtime verification in Erlang by using contracts

138 点作者 lainon超过 6 年前

5 条评论

mhd超过 6 年前
Some day, after every language has taken its bits, we might actually see Eiffel in the real world.<p>Meanwhile, any of this available for Elixir, too? One of the languages on my 2019 list…
评论 #19101125 未加载
评论 #19103406 未加载
评论 #19103681 未加载
评论 #19101501 未加载
taude超过 6 年前
I worked on a large C++ project with design-by-contract pattern a long time ago. It was not the most pleasant experience. There was so much more code to validate pre and post conditions and class invariants. It might have had a lot to do because it was a classic OO business system (think a large Java app now, but where all the code was C++), but I remember spending more time writing the contract code than the actual business code.<p>Is there any recent writings on this pattern on applying the idea more sanely? As it is, I think I prefer to write testing code outside of the core behavior and have to anticipate what values are valid, or create new tests as bugs are found.
评论 #19102379 未加载
评论 #19104821 未加载
评论 #19102396 未加载
评论 #19102366 未加载
kevintb超过 6 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;tamarit&#x2F;edbc" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tamarit&#x2F;edbc</a> for those who want to see the implementation
评论 #19101054 未加载
rednerrus超过 6 年前
&quot;Accidentally&quot; erased footage of the moon landing?!?
评论 #19100333 未加载
评论 #19100185 未加载
sbabusingh超过 6 年前
Every time is correct but machine work vreification is no more like human finger work