5 ms·
"Also, even clearing that bar doesn't require doing so with the type system (e.g. Python doesn't have undefined behavior, either)." If python doesn't have a ty
by pmoriarty 7y ago
"Also, even clearing that bar doesn't require doing so with the type system (e.g. Python doesn't have undefined behavior, either)."
If python doesn't have a type system, why does it report type errors like this?
>>> "foo" / "bar"
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unsupported operand type(s) for /: 'str' and 'str'
- pron 7y agoIn programming language theory and formal systems in general, "types" mean what is often called "static types." In any event, that's what I'm referring to.
- deleted 7y ago[deleted]