Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
[deleted]
on Oct 8, 2012 | hide | past | favorite


I'm pretty happy to share this; its based on a JSON validator I've been using for a long time. I reimplemented the technique in Python 3 for use with function annotations. Its inspired by Typescript; my ambition would be that its syntax is widely adopted and eventually static type checkers support it and IDEs can do auto-complete ala Typescript.

Right now its a useful little runtime checker for you.


Very nice. I've been feeling the pains of python's lack of static type checking recently and was thinking that function parameter types could be a huge boon to productivity. I'll definitely be checking this out.

Now, if only someone would retroactively apply this to the entire standard library...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: