type annotation
[/taɪp ˌænəˈteɪʃən/]
nounpl: type annotations
anotação de tipo
1. A syntactic construct in programming that explicitly declares the data type of a variable, parameter, or return value
In Python, you can use type annotations to specify that a function parameter should be an integer: def add(x: int, y: int) -> int.
Em Python, você pode usar anotações de tipo para especificar que um parâmetro de função deve ser um inteiro: def add(x: int, y: int) -> int.
2. A language feature that improves code clarity and enables static type checking without requiring explicit type declarations at runtime
Modern programming languages like TypeScript use type annotations to catch errors before execution.
Linguagens de programação modernas como TypeScript usam anotações de tipo para detectar erros antes da execução.
Type annotations are a feature primarily discussed in programming and software development communities. Both Brazilian and Portuguese tech professionals use 'anotação de tipo' as the standard translation, though many developers use the English term 'type annotation' or 'type hint' in technical discussions regardless of their native language. This reflects the global, English-dominated nature of software development terminology.
Look up more words on Fala2Me
The free English-Portuguese dictionary with real Brazilian accents, NYC slang, conjugator and more
Open Fala2Me →