Hacker News new | ask | show | jobs
Show HN: Non functional requirements should be part of function interfaces (github.com)
1 points by yizhang7210 1686 days ago
1 comments

It always puzzles me why function signatures only include their input/output types but doesn't say anything about how long it's supposed to run.

So I wrote a python library that makes functional latency a first class citizen to be specified (almost) as part of the function signature.

`pip install python-liang` to see it in action.