Skip to content

What's the goal of the new work-in-progress typechecker in comparison to the current one? #1276

Answered by aatxe
karl-police asked this question in Q&A
Discussion options

You must be logged in to vote

The goals of the new type system are, in no particular order,

  • to improve the accuracy of inferred types
  • to improve the expressiveness of the type system (to support e.g. typing for operator overloading)
  • to eliminate a significant class of type inference bugs caused by the old architecture (which was intrinsically greedy, causing lots of spurious type errors)
  • to separate, architecturally, the task of type inference from the task of type checking (which allows us to reduce the amount of work needed to power both error reporting and autocomplete simultaneously, especially for users of non-strict mode)
  • to clarify and ultimately simplify the behavior of non-strict mode in particular (rather t…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@karl-police
Comment options

Answer selected by aatxe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants