Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Type checking in Python.
@returns(int) @params(a=int, b=int) def add(a, b): return a + b
@typ(int, int, ret=int) def add(a, b): return a + b
Senko's version has the advantage that you can compose types in it, e.g. {str:int} is a dictionary whose keys are strings and values are integers.
There are no comments on this comment yet.
Senko's version has the advantage that you can compose types in it, e.g. {str:int} is a dictionary whose keys are strings and values are integers.