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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Non functional requirements should be part of function interfaces

1 点作者 yizhang7210超过 3 年前

1 comment

yizhang7210超过 3 年前
It always puzzles me why function signatures only include their input&#x2F;output types but doesn&#x27;t say anything about how long it&#x27;s supposed to run.<p>So I wrote a python library that makes functional latency a first class citizen to be specified (almost) as part of the function signature.<p>`pip install python-liang` to see it in action.