Comment by setopt 3 months ago > A type is a contract, not a hint!In Python it is a hint. 5 comments setopt Reply rurban 3 months ago Exactly. That was their worst mistake ever setopt 3 months ago I agree. I use Beartype to get runtime type checks, but it shouldn’t be necessary. Some support for type checking, whether at byte compile time or runtime, should land upstream. almostgotcaught 3 months ago Never gonna happen - the fundamental premise of the language is duck typing. 2 replies →
rurban 3 months ago Exactly. That was their worst mistake ever setopt 3 months ago I agree. I use Beartype to get runtime type checks, but it shouldn’t be necessary. Some support for type checking, whether at byte compile time or runtime, should land upstream. almostgotcaught 3 months ago Never gonna happen - the fundamental premise of the language is duck typing. 2 replies →
setopt 3 months ago I agree. I use Beartype to get runtime type checks, but it shouldn’t be necessary. Some support for type checking, whether at byte compile time or runtime, should land upstream. almostgotcaught 3 months ago Never gonna happen - the fundamental premise of the language is duck typing. 2 replies →
almostgotcaught 3 months ago Never gonna happen - the fundamental premise of the language is duck typing. 2 replies →
Exactly. That was their worst mistake ever
I agree. I use Beartype to get runtime type checks, but it shouldn’t be necessary. Some support for type checking, whether at byte compile time or runtime, should land upstream.
Never gonna happen - the fundamental premise of the language is duck typing.
2 replies →