Re:Python’s “type hints” are a bit of a disappointment to me
by int_19h on Friday April 22, 2022 @08:11PM
(#31129872)
The source code shouldn't need to say anything about the type of the resulting matrix explicitly, perhaps. But why shouldn't the type system keep track of shapes and deduce the accurate type for the result of said multiplication?
[ Parent
| on HN ]
Re:Python’s “type hints” are a bit of a disappointment to me
by bayesian_horse on Saturday April 23, 2022 @12:25AM
(#31131385)
Because the shape can be dynamic, for example.