News for hackers. Stuff that matters.
Re:Type hinting for Python by oblio on Tuesday January 06, 2015 @11:39AM (#8845237)
What's so ugly/trash about that?

It looks quite simple/elegant. Plus what they're added is meant to be used by static analysis tools and IDEs, not actually for validating things at runtime.

Re:Type hinting for Python by suvelx on Tuesday January 06, 2015 @12:56PM (#8845836)
What's the point if you don't actually validate with the validation hints you've added?
Re:Type hinting for Python by falcor84 on Tuesday January 06, 2015 @01:22PM (#8846044)
It's mostly a performance related choice.

Having these checks available for development does allow you full confidence in the type safety if the entire call stack has type annotations. If you're using some code that doesn't have these annotations, you might catch problems during development, or might not. But that's just the old familiar situation, and it allows you to iterate quickly while choosing which parts are more critical.

Note that this is analogous to the design choice made by Typescript, while the designers of Atscript chose to extend Typescript with runtime assertions as well.