Contextual typing
US9639335B2 · kind B2 · utility
Assignee
Inventors
Key dates
| Filing date | Mar 13, 2013 |
| Grant date | May 2, 2017 |
| Priority date | — |
| Expiry date | May 14, 2033 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F8/20
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
Type inference is used to provide the benefits of static type checking without explicitly declaring type in the source code. Type inference that proceeds in a bottom up direction is augmented by contextual typing that proceeds in a top down direction. Contextual typing types enclosed expressions by associating the type of a directly enclosing expression with the enclosed expression. Object literals, function literals and array literals enclosed in assignment and call expressions, can be contextually typed.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.