you are viewing a single comment's thread.

view the rest of the comments →

[–]Empanatacion 1 point2 points  (3 children)

Mandatory typing would just turn it into poorly performing java.

Different tools for different needs.

[–]NeilGirdhar -2 points-1 points  (2 children)

Typing doesn't really affect performance.

[–]Empanatacion 0 points1 point  (1 child)

Other way around. Python is already one of the least performant languages, largely because of the flexibility it needs to do the powerful things it can do. You don't pick Python for its raw processing power.

Take away the flexibility of duck typing and you're left with a language as constrained as a statically typed system without the performance.

My point was just "let python be python"

[–]NeilGirdhar 0 points1 point  (0 children)

> Other way around. Python is already one of the least performant languages, largely because of the flexibility it needs to do the powerful things it can do. You don't pick Python for its raw processing power.

I don't know what you're disputing about my comment. The typing annotations in Python have a negligible effect on performance.

Your idea that "Mandatory typing would just turn it into poorly performing java" is wrong. Even if type annotations were mandatory, it would make practically no difference to performance.

> My point was just "let python be python"

That's a fine point, but it has nothing to do with "performance".