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
I would like to only store integer Ids for interned identifiers, and then possibly recover the string from the Id for pretty-printing.
My use case for using the raw integer Id instead of Interned{String,Text} is to use negative ids for global variables/constants, and non-negative de Bruijn indices/levels for local variables. Since interned ids are always non-negative, I can use - internedId - 1 as an identifier for globals.
Is it be possible to retrieve an uninterned value from just the Id using this library? I haven't been able to figure out how.
Thanks!
The text was updated successfully, but these errors were encountered:
I would like to only store integer
Id
s for interned identifiers, and then possibly recover the string from theId
for pretty-printing.My use case for using the raw integer
Id
instead ofInterned{String,Text}
is to use negative ids for global variables/constants, and non-negative de Bruijn indices/levels for local variables. Since interned ids are always non-negative, I can use- internedId - 1
as an identifier for globals.Is it be possible to retrieve an uninterned value from just the
Id
using this library? I haven't been able to figure out how.Thanks!
The text was updated successfully, but these errors were encountered: