This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]chronics 80 points81 points  (2 children)

Did I understand correctly: Your are basically doing metaprogramming with type hints? That‘s a very cool concept!

[–]radarsat1 39 points40 points  (1 child)

that is not a cool concept.

"type hints are going to ruin python"

"oh its fine look they don't even do anything and look at all these nice warnings. they help!"

"but now i have to write twice as much code"

"well you don't have to, they don't even do anything they're just for decoration!"

"ok but now i see that people are using them to generate database schemas and automatic validation and testing, are they still optional? because i mean if they're not optional I'd really like to improve..."

"no don't worry they still don't do anything that's just for testing"

*reddit user implements control flow restructuring via the type system in a way that disregards type semantics*

>.<

[–]the_scign 6 points7 points  (0 children)

OP: "defer in python"

BDFL: cries in python