40ants / 40ants/cl-prevalence

Support custom hash tables?

Abierto
#18 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Common Lisp
Estrellas
34
Forks
7
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

https://github.com/metawilm/cl-custom-hash-table provides us with a portable way to define custom hash tables.
These are still of the `hash-table` type and thus are serialized by prevalence like any other hash table, but with the `test` set to the custom test.
The new `hash-function`, however, is not serialized.

This causes problems on deserialization because the custom test alone is not enough to make the custom hash table: the hash function must be provided.
Otherwise, the following condition is raised:

```lisp
Unknown :TEST for MAKE-HASH-TABLE: MY-TEST-FUNCTION
```

One way to work around this would be to serialize the hash-function name. Then, to deserialize it, the library would use cl-custom-hash-table.
The problem is that I can't find a way to access the hash-function used for a hash-table value. Any idea?

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.