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
The word "TypeVar" is used to mean two different things in our codebase:
a type unification variable. The type is MetaPtr (itself a confusing name because it's not one of those mortise/tenon Ptrs, and because this name is inconsistent with KindVar, the kind-level equivalent), but the TypeStore maps each MetaPtr to a TVar (itself a confusing name because it means Type Variable, not Control.Concurrent.STM.TVar), whose fields are set via functions named setTVLinkage and setTVLevel
a scheme variable. The type is just Natural (though I have just opened a PR to wrap it in a SchemeVar newtype), but ETypeVar (introduced by prepareTypeVar) is the primitive macro for expanding a symbol to a scheme variable.
I would like to clean up this confusing terminology. How about the following renamings?
MetaPtr -> TypeVar
TVar -> TypeVarInfo
ETypeVar -> ESchemeVar
prepareTypeVar -> prepareSchemeVar
The text was updated successfully, but these errors were encountered:
The word "TypeVar" is used to mean two different things in our codebase:
MetaPtr
(itself a confusing name because it's not one of those mortise/tenonPtr
s, and because this name is inconsistent withKindVar
, the kind-level equivalent), but theTypeStore
maps eachMetaPtr
to aTVar
(itself a confusing name because it means Type Variable, notControl.Concurrent.STM.TVar
), whose fields are set via functions namedsetTVLinkage
andsetTVLevel
Natural
(though I have just opened a PR to wrap it in a SchemeVar newtype), butETypeVar
(introduced byprepareTypeVar
) is the primitive macro for expanding a symbol to a scheme variable.I would like to clean up this confusing terminology. How about the following renamings?
MetaPtr
->TypeVar
TVar
->TypeVarInfo
ETypeVar
->ESchemeVar
prepareTypeVar
->prepareSchemeVar
The text was updated successfully, but these errors were encountered: