Skip to content

Explain where adding type hints can help the inference system in static typing chapter #44

@ss2165

Description

@ss2165

For python users asking for type hints on functions seems to be natural, but hinting elsewhere (e.g. choosing generics, specifying array sizes) to help the type inference engine is unintuitive. Explain this with examples, and if possible add hints to errors to suggest adding type hints.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions