racket/typed-racket

TR should provide a Dictionary type

Aberta

#31 aberto em 21 de fev. de 2015

 (0 comentário) (0 reação) (0 responsável)Racket (106 forks)github user discovery
good first issue

Métricas do repositório

Stars
 (576 estrelas)
Métricas de merge de PR
 (Mesclagem média 11d 14h) (1 fundiu PR em 30d)

Description

It would be nice if TR provided a built-in Dictionary type. At its simplest, it would just be (U (HashTable a b) (Listof (Pairof a b)), but vectors are also technically dictionaries.

Does TR's type system allow "specializations" of types? I.e. some way to define a special case for (Dictionary Integer b) that includes vectors?

Technically, dictionaries also include structures that implement gen:dict, but obviously generics don't exist in TR yet.

Guia do colaborador