– Typee Documentation –
3 – Typee Language Description
3.1 – Language Generalities
Typee is an Object Oriented Programming language. As any OOP language, it defines classes and their inheritance concept.
It defines also functions and traditionnal statements (i.e. instructions) plus some bonuses (e.g. otherwise
associated with for
or while
as in Python or with switch
in C++ and Java).
Scalar operators will be of no surprise to programmers, even for not much experienced ones. Typee understands 0-shifting as does Jave and offers a few not-defined operators which are accepted by the language and which are for users specific definitions.
Scalar types are generic enough also, while they are precisely named in Typee for definitively unambiguous understanding of their sizes. Auto typing is not only allowed, it is inherent in language.
Functions, methods and operators may be templated.
If you don’t know what are comprehensions, which are common in Python, you will understand thieir use with clauses for
and if
.
list
, set
, dict
, and array
are built-in containers. The three first types are well known from Python programmers. The last one is well known from C++ and Java programmers, as well as from Python programmers using library NumPy. A fifth type of built-in container is also available in Typee: file
.
Typee handles classical exceptions. This concept helps programmers deal with unexpected errors at run time. By no way is it different in Typee from other OOP languages (Python, C++ and Java).
It defines unnamed functions (as does Java or Python with lambdas
)
Important: THE very specific statement with Typee is instruction embed
. Since Typee is to be translated into other languages, it seems very natural to be allowed to embed some native code into Typee programs. This is exactly what embed
permits.
Finally, Typee offers also few other goodies that you will enjoy to use.