from Hacker News

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

by yizhang7210 on 11/7/21, 9:07 PM with 1 comments

  • by yizhang7210 on 11/7/21, 9:07 PM

    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.