You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2023. It is now read-only.
It would be great to be able to match values against types. This could be a new operator in the language e.g., e instanceof T or e is of type T.
This could also be used for the underlying semantics of define variable x : T := e.
I believe instanceof can be supported as an operator and compiled to an underlying combination of data-type inference and sub typing (See querycert/qcert#95).
Additionally, this might allow us to consolidate the pattern matching expression, which currently only works for either class names or values, and from there to generalize the type dispatch implemented for #15
The text was updated successfully, but these errors were encountered:
It would be great to be able to match values against types. This could be a new operator in the language e.g.,
e instanceof T
ore is of type T
.This could also be used for the underlying semantics of
define variable x : T := e
.I believe instanceof can be supported as an operator and compiled to an underlying combination of data-type inference and sub typing (See querycert/qcert#95).
Additionally, this might allow us to consolidate the pattern matching expression, which currently only works for either class names or values, and from there to generalize the type dispatch implemented for #15
The text was updated successfully, but these errors were encountered: