Invention Grant
- Patent Title: Safely consuming dynamically-typed code from a statically-typed programming language
-
Application No.: US14944855Application Date: 2015-11-18
-
Publication No.: US10296313B2Publication Date: 2019-05-21
- Inventor: Roger James Poon
- Applicant: Roger James Poon
- Main IPC: G06F8/51
- IPC: G06F8/51 ; G06F8/41 ; G06F9/455

Abstract:
A computerized method is provided to consume a dynamically-typed language in a compatible language, and to compile source code in the compatible language to a target language. The methods make it possible to add type safety and static type checking to a superset of dynamically-typed languages, irrespective of whether the dynamically-typed languages are dynamically type-checked or not. In preferred embodiments, the methods allow for all types in an external language to be represented as a single type. In various embodiments, more than one unified external type can be allowed, each unified external type being specific to a group or class of types. In the methods, conversions are used as a mechanism to convert types. Conversions can be either implicit or explicit, and explicit conversions can be either implementation-defined or user-defined.
Public/Granted literature
- US20160259633A1 Safely consuming dynamically-typed code from a statically-typed programming language Public/Granted day:2016-09-08
Information query