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
Note the above bindings and how they correspond to the type signature. We can use this binding pattern to quasiquote over concrete types for something like:
fun [rwp|ReT i o m ()] =
Where rwp above is the ReWire pattern quasiquoter for ReWIre types.
This could certainly shorten up a lot of code in the compiler and make it more legible.
The text was updated successfully, but these errors were encountered:
Just like the title says.
Currently in the compiler source, we match against ReWire types in the following way:
Say you have ReT i o m (). Matching against this construction looks like this.
Note the above bindings and how they correspond to the type signature. We can use this binding pattern to quasiquote over concrete types for something like:
fun [rwp|ReT i o m ()] =
Where rwp above is the ReWire pattern quasiquoter for ReWIre types.
This could certainly shorten up a lot of code in the compiler and make it more legible.
The text was updated successfully, but these errors were encountered: