enso/docs/types
Ara Adkins dd0f93c328
Add support for writing type signatures (#833)
1.  Adds support for type signature syntax.
2.  Lifts the type operators into metdata.
3.  Uses the signatures to determine arg suspension.
2020-06-15 17:45:14 +01:00
..
access-modifiers.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00
contexts.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00
dependent-typing.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00
dynamic-dispatch.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00
errors.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00
evaluation.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00
function-types.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00
goals.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00
hierarchy.md Add support for writing type signatures (#833) 2020-06-15 17:45:14 +01:00
inference-and-checking.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00
modules.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00
parallelism.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00
pattern-matching.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00
README.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00
references.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00
type-directed-programming.md Restructure the developer documentation (#751) 2020-05-15 11:41:26 +01:00

layout title category tags order
section-summary Enso's Type System types
types
readme
0

Enso's Type System

On the spectrum of programming type systems ranging from dynamically typed to statically typed, one likes to think that there is a happy medium between the two. A language that feels dynamic, with high levels of type inference, but lets the users add more type information as they want more safety and compile-time checking.

Enso aims to be that language, providing a statically-typed language with a type system that makes it feel dynamic. It will infer sensible types in many cases, but as users move from exploratory pipelines to production systems, they are able to add more and more type information to their programs, proving more and more properties using the type system. This is based on a novel type-inference engine, and a fusion of nominal and structural typing, combined with dependent types.

All in all, the type system should stay out of the users' ways unless they make a mistake, but give more experienced users the tools to build the programs that they require.

This document contains discussion and designs for the type-system's behaviour, as well as formal specifications where necessary. It discusses the impact of many syntactic language features upon inference and type checking, and is instrumental for ensuring that we build the right language.

A Note on Syntax

In the aid of precision, this document will use syntax that may not be exposed to users. The appearance of a piece of syntax here that is not described in the syntax document makes no promises as to whether said syntax will be exposed in the surface language.

Please Note: The designs in this section are currently very exploratory as the type system is not slated from implementation until after 2.0.

Information on the type system is broken up into the following sections: