Skip to content

Conversation

@softmattertheory
Copy link
Contributor

This PR implements type checking in morpho. Declare a variable with a restricted type as follows:

Int a = 5

The morpho compiler will now ensure that anything assigned to this variable meets the type restriction. This is done through a combination of compile time checking (using type inference) and runtime (dynamic) checking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants