racket/typed-racket

TR should provide a Dictionary type

Ouverte

#31 ouverte le 21 févr. 2015

 (0 commentaire) (0 réaction) (0 personne assignée)Racket (106 forks)github user discovery
good first issue

Métriques du dépôt

Stars
 (576 étoiles)
Métriques de merge PR
 (Merge moyen 11j 14h) (1 PR mergée en 30 j)

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.

Guide contributeur